Enum allocator::AllocError
source · pub enum AllocError {
InvalidParam,
MemoryOverlap,
NoMemory,
NotAllocated,
}
Expand description
The error type used for allocation.
Variants§
InvalidParam
Invalid size
or align_pow2
. (e.g. unaligned)
MemoryOverlap
Memory added by add_memory
overlapped with existed memory.
NoMemory
No enough memory to allocate.
NotAllocated
Deallocate an unallocated memory region.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
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