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. Swap is transparent — RcOrArc::new, .clone(), strong_count all work on both.

Aliased Type§

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