S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which type allows safe global mutable access?

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

Explanation by: Shyam Dubey
Mutex<T> is used for thread-safe mutable access to shared data.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.