Explicate what "Rc" and "Arc" stand for.
This commit is contained in:
parent
8f66fafebd
commit
8d9df99fbb
2 changed files with 4 additions and 2 deletions
|
@ -42,7 +42,8 @@ use heap::deallocate;
|
||||||
/// necessarily) at _exactly_ `MAX_REFCOUNT + 1` references.
|
/// necessarily) at _exactly_ `MAX_REFCOUNT + 1` references.
|
||||||
const MAX_REFCOUNT: usize = (isize::MAX) as usize;
|
const MAX_REFCOUNT: usize = (isize::MAX) as usize;
|
||||||
|
|
||||||
/// A thread-safe reference-counting pointer.
|
/// A thread-safe reference-counting pointer. "Arc" stands for "Atomically
|
||||||
|
/// Reference Counted".
|
||||||
///
|
///
|
||||||
/// The type `Arc<T>` provides shared ownership of a value of type `T`,
|
/// The type `Arc<T>` provides shared ownership of a value of type `T`,
|
||||||
/// allocated in the heap. Invoking [`clone`][clone] on `Arc` produces
|
/// allocated in the heap. Invoking [`clone`][clone] on `Arc` produces
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
|
|
||||||
#![allow(deprecated)]
|
#![allow(deprecated)]
|
||||||
|
|
||||||
//! Single-threaded reference-counting pointers.
|
//! Single-threaded reference-counting pointers. "Rc" stands for "Reference
|
||||||
|
//! Counted".
|
||||||
//!
|
//!
|
||||||
//! The type [`Rc<T>`][`Rc`] provides shared ownership of a value of type `T`,
|
//! The type [`Rc<T>`][`Rc`] provides shared ownership of a value of type `T`,
|
||||||
//! allocated in the heap. Invoking [`clone`][clone] on [`Rc`] produces a new
|
//! allocated in the heap. Invoking [`clone`][clone] on [`Rc`] produces a new
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue