A

Admin • 828.03K Points
Coach

Q. What is required to mutate a borrowed variable?

  • (A) Clone the variable
  • (B) Use RefCell<T>
  • (C) Use &mut reference
  • (D) Use Rc<T>
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
You need a &mut reference to mutate borrowed data.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.