Skip to main content

RcOrArc

Type Alias RcOrArc 

Source
pub type RcOrArc<T> = Rc<T>;
Expand description

Reference-counting smart pointer: Rc by default, Arc under the multi-threaded feature. Swapping is transparent. RcOrArc::new, .clone() and strong_count all work on both.

Aliased Typeยง

pub struct RcOrArc<T> { /* private fields */ }