Module no_std_compat2::rc

source ·
Available on non-crate feature std only.

Structs

  • A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
  • Weak is a version of Rc that holds a non-owning reference to the managed allocation. The allocation is accessed by calling upgrade on the Weak pointer, which returns an Option<Rc<T>>.