S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which of these allows interior mutability?

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

Explanation by: Shyam Dubey
RefCell<T> allows interior mutability by checking borrow rules at runtime.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.