mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 14:25:24 +00:00
parent
6869645e86
commit
973c2f65ae
@ -74,6 +74,10 @@
|
|||||||
//! }
|
//! }
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
//! Note that this example uses `Rc<T>` and not `Arc<T>`. `RefCell<T>`s are for single-threaded
|
||||||
|
//! scenarios. Consider using `Mutex<T>` if you need shared mutability in a multi-threaded
|
||||||
|
//! situation.
|
||||||
|
//!
|
||||||
//! ## Implementation details of logically-immutable methods
|
//! ## Implementation details of logically-immutable methods
|
||||||
//!
|
//!
|
||||||
//! Occasionally it may be desirable not to expose in an API that
|
//! Occasionally it may be desirable not to expose in an API that
|
||||||
|
Loading…
Reference in New Issue
Block a user