[][src]Struct growable::Reusable

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

A reusable box. It behaves just like the default Box (and it WILL free memory on drop) but it is also possible to free it manually, fetching a Growable back.

Methods

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

Drops the value and returns the memory back as a Growable.

Moves the value out of this Reusable without dropping it and then returns it back with Growable.

Trait Implementations

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

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

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

Performs copy-assignment from source. Read more

impl<T: ?Sized> Drop for Reusable<T>
[src]

impl<T: ?Sized, U> CoerceUnsized<Reusable<U>> for Reusable<T> where
    T: Unsize<U>,
    U: ?Sized
[src]

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

impl<T: ?Sized> Deref for Reusable<T>
[src]

The resulting type after dereferencing.

impl<T: ?Sized> DerefMut for Reusable<T>
[src]

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

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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