Struct Rc

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

Immutable reference counted pointer type

Struct RcMut

pub struct RcMut<T> {
    priv ptr: *mut RcMutBox<T>,
}

Mutable reference counted pointer type

Implementation for Rc<T> where <T>

Method borrow

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

Implementation of Drop for Rc<T> where <T>

Method drop

fn drop(&self)

Implementation of Clone for Rc<T> where <T>

Method clone

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

Return a shallow copy of the reference counted pointer.

Implementation of DeepClone for Rc<T> where <T: DeepClone>

Method deep_clone

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

Return a deep copy of the reference counted pointer.

Implementation of ::std::cmp::Eq for Borrow

Automatically derived.

Method eq

fn eq(&self, __arg_0: &Borrow) -> ::bool

Method ne

fn ne(&self, __arg_0: &Borrow) -> ::bool

Implementation for RcMut<T> where <T>

Method with_borrow

fn with_borrow<U>(&self, f: &fn(&T) -> U) -> U

Fails if there is already a mutable borrow of the box

Method with_mut_borrow

fn with_mut_borrow<U>(&self, f: &fn(&mut T) -> U) -> U

Fails if there is already a mutable or immutable borrow of the box

Implementation of Drop for RcMut<T> where <T>

Method drop

fn drop(&self)

Implementation of Clone for RcMut<T> where <T>

Method clone

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

Return a shallow copy of the reference counted pointer.

Implementation of DeepClone for RcMut<T> where <T: DeepClone>

Method deep_clone

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

Return a deep copy of the reference counted pointer.

Function rc_from_const

fn rc_from_const<T: Freeze>(value: T) -> Rc<T>

Function rc_from_owned

fn rc_from_owned<T: Send>(value: T) -> Rc<T>

Function rc_mut_from_const

fn rc_mut_from_const<T: Freeze>(value: T) -> RcMut<T>

Function rc_mut_from_owned

fn rc_mut_from_owned<T: Send>(value: T) -> RcMut<T>