Enum slabmalloc::AllocationError
source · [−]pub enum AllocationError {
OutOfMemory,
InvalidLayout,
}
Expand description
Error that can be returned for allocation
and deallocation
requests.
Variants
OutOfMemory
Can’t satisfy the allocation request for Layout because the allocator
does not have enough memory (you may be able to refill
it).
InvalidLayout
Allocator can’t deal with the provided size of the Layout.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for AllocationError
impl Send for AllocationError
impl Sync for AllocationError
impl Unpin for AllocationError
impl UnwindSafe for AllocationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more