Struct static_alloc::bump::LeakError
source · pub struct LeakError<T> { /* private fields */ }
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§
Trait Implementations§
source§impl<T: PartialEq> PartialEq for LeakError<T>
impl<T: PartialEq> PartialEq for LeakError<T>
impl<T: Copy> Copy for LeakError<T>
impl<T: Eq> Eq for LeakError<T>
impl<T> StructuralPartialEq for LeakError<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for LeakError<T>where
T: RefUnwindSafe,
impl<T> Send for LeakError<T>where
T: Send,
impl<T> Sync for LeakError<T>where
T: Sync,
impl<T> Unpin for LeakError<T>where
T: Unpin,
impl<T> UnwindSafe for LeakError<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more