Struct growable::Reusable [−][src]
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.
Implementations
impl<T: ?Sized> Reusable<T>[src]
pub fn free(this: Self) -> Growable[src]
Drops the value and returns the memory back as a Growable.
pub fn free_move(this: Self) -> (T, Growable) where
T: Sized, [src]
T: Sized,
Trait Implementations
impl<T: ?Sized> Clone for Reusable<T> where
T: Clone, [src]
T: Clone,
fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: ?Sized, U> CoerceUnsized<Reusable<U>> for Reusable<T> where
T: Unsize<U>,
U: ?Sized, [src]
T: Unsize<U>,
U: ?Sized,
impl<T: ?Sized> Debug for Reusable<T> where
T: Debug, [src]
T: Debug,
impl<T: ?Sized> Deref for Reusable<T>[src]
impl<T: ?Sized> DerefMut for Reusable<T>[src]
impl<T: ?Sized> Drop for Reusable<T>[src]
impl<T> Pointer for Reusable<T> where
T: ?Sized, [src]
T: ?Sized,
impl<T: ?Sized> Send for Reusable<T> where
T: Send, [src]
T: Send,
impl<T: ?Sized> Sync for Reusable<T> where
T: Sync, [src]
T: Sync,
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for Reusable<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T: ?Sized> Unpin for Reusable<T>
impl<T: ?Sized> UnwindSafe for Reusable<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,