Struct cell_rc::CellRc [] [src]

pub struct CellRc<T: ?Sized> { /* fields omitted */ }

Wrapper around Rc<T>

Methods

impl<T: ?Sized> CellRc<T>
[src]

Creates a new CellRc<T> from a Rc<T>

Consumes a CellRc<T>, returning the wrapped Rc<T>

Returns a clone of the wrapped Rc<T>, incresing the strong count.

Sets the wrapped Rc<T> to a new value and returns the old one.

Creares a Weak<T>. See Rc::downgrade

Creates a CellWeak<T>.

See Rc::weak_count.

See Rc::strong_count.

See Rc::ptr_eq.

See Rc::ptr_eq.

impl<T> CellRc<T>
[src]

See Rc::try_unwrap.

See Rc::into_raw.

See Rc::from_raw.

Trait Implementations

impl<T: Debug + ?Sized> Debug for CellRc<T>
[src]

Formats the value using the given formatter.

impl<T: ?Sized> From<Rc<T>> for CellRc<T>
[src]

Performs the conversion.

impl<T: ?Sized> Clone for CellRc<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: ?Sized + Hash> Hash for CellRc<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more