A

Admin • 833.24K Points
Coach

Q. Which of the following types guarantees at compile time that only one mutable reference exists?

  • (A) Rc<T>
  • (B) RefCell<T>
  • (C) &mut T
  • (D) Arc<T>
  • Correct Answer - Option(C)
  • Views: 31
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin

`&mut T` ensures there is only one mutable reference to a value at a time.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.