R

Ravina • 3.96K Points
Extraordinary

Q. Which type must be used to allow mutation through shared references?

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

Explanation by: Ravina

`RefCell<T>` allows for mutable access via shared references.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.