Struct lifeguard::RcRecycled [] [src]

pub struct RcRecycled<T> where
    T: Recycleable
{ /* fields omitted */ }

A smartpointer which uses reference counting (Rc) to know when to move its wrapped value back to the Pool that issued it.

Methods

impl<'a, T> RcRecycled<T> where
    T: Recycleable
[src]

Disassociates the value from the Pool that issued it. This destroys the smartpointer and returns the previously wrapped value.

Trait Implementations

impl<'a, T> AsRef<T> for RcRecycled<T> where
    T: Recycleable
[src]

Gets a shared reference to the value wrapped by the smartpointer.

impl<'a, T> AsMut<T> for RcRecycled<T> where
    T: Recycleable
[src]

Gets a mutable reference to the value wrapped by the smartpointer.

impl<'a, T> Debug for RcRecycled<T> where
    T: Debug + Recycleable
[src]

Formats the value using the given formatter.

impl<'a, T> Display for RcRecycled<T> where
    T: Display + Recycleable
[src]

Formats the value using the given formatter. Read more

impl<'a, T> Deref for RcRecycled<T> where
    T: Recycleable
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T> DerefMut for RcRecycled<T> where
    T: Recycleable
[src]

The method called to mutably dereference a value