Struct static_alloc::bump::LeakError [−][src]
pub struct LeakError<T> { /* fields omitted */ }Expand description
A value could not be moved into a slab allocation.
The error contains the value for which the allocation failed. Storing the value in the error
keeps it alive in all cases. This prevents the Drop implementation from running and preserves
resources which may otherwise not be trivial to restore.
Implementations
impl<T> LeakError<T>[src]
impl<T> LeakError<T>[src]pub fn into_inner(self) -> T[src]
pub fn into_inner(self) -> T[src]Retrieve the value that could not be allocated.
Trait Implementations
impl<T: Copy> Copy for LeakError<T>[src]
impl<T: Eq> Eq for LeakError<T>[src]
impl<T> StructuralEq for LeakError<T>[src]
impl<T> StructuralPartialEq for LeakError<T>[src]
Auto Trait Implementations
impl<T> Send for LeakError<T> where
T: Send,
T: Send,
impl<T> Sync for LeakError<T> where
T: Sync,
T: Sync,
impl<T> Unpin for LeakError<T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more