S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which type of closure takes ownership of captured variables?

  • (A) |x| x + 1
  • (B) move |x| x + 1
  • (C) &|x| x + 1
  • (D) *|x| x + 1
  • Correct Answer - Option(B)
  • Views: 18
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
move closures take ownership of the variables they capture.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.