Struct extra::rc::Rc

pub struct Rc<T> {
    priv ptr: *mut RcBox<T>,
}

Immutable reference counted pointer type

Methods

impl<T: std::kinds::Send> Rc<T>

fn from_send(value: T) -> Rc<T>

impl<T: std::kinds::Freeze> Rc<T>

fn from_freeze(value: T) -> Rc<T>

impl<T> Rc<T>

fn borrow<'r>(&'r self) -> &'r T

Trait Implementations

impl<T> std::ops::Drop for Rc<T>

fn drop(&mut self)

impl<T> std::clone::Clone for Rc<T>

fn clone(&self) -> Rc<T>

Return a shallow copy of the reference counted pointer.

impl<T: std::clone::DeepClone> std::clone::DeepClone for Rc<T>

fn deep_clone(&self) -> Rc<T>

Return a deep copy of the reference counted pointer.