Struct swimmer::Recycled[][src]

pub struct Recycled<'a, T> where
    T: Recyclable
{ /* fields omitted */ }

A smart pointer which returns the contained object to its pool once dropped.

Objects of this type are obtained using Pool::get.

Trait Implementations

impl<'a, T> AsMut<T> for Recycled<'a, T> where
    T: Recyclable
[src]

impl<'a, T> AsRef<T> for Recycled<'a, T> where
    T: Recyclable
[src]

impl<'a, T> Debug for Recycled<'a, T> where
    T: Recyclable + Debug
[src]

impl<'a, T> Deref for Recycled<'a, T> where
    T: Recyclable
[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T> DerefMut for Recycled<'a, T> where
    T: Recyclable
[src]

impl<'a, T> Display for Recycled<'a, T> where
    T: Recyclable + Display
[src]

impl<'a, T> Drop for Recycled<'a, T> where
    T: Recyclable
[src]

impl<'a, T> PartialEq<T> for Recycled<'a, T> where
    T: Recyclable + PartialEq
[src]

impl<'a, T> PartialOrd<T> for Recycled<'a, T> where
    T: Recyclable + PartialOrd
[src]

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for Recycled<'a, T>[src]

impl<'a, T> Send for Recycled<'a, T>[src]

impl<'a, T> Sync for Recycled<'a, T> where
    T: Sync
[src]

impl<'a, T> Unpin for Recycled<'a, T> where
    T: Unpin
[src]

impl<'a, T> !UnwindSafe for Recycled<'a, T>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.