pub enum PallocError {
NoBlockSpace,
AlreadyAllocated,
NotAllocated,
SegmentingTail,
OutOfMemory,
NullPtr,
}Expand description
defines an error returned from either an allocation or a deallocation
Variants§
NoBlockSpace
no space is left between the block heap start the next link of the chain.
AlreadyAllocated
the block has already been allocated to something else.
NotAllocated
no allocation has been made on this block yet so the operation cannot proceed.
SegmentingTail
cannot segment the last block (tail) of the linked list as it does not have a defined heap size.
OutOfMemory
no more blocks can be allocated without going outside of memory bounds.
NullPtr
given is zero or memory header controlling it is zero
Trait Implementations§
Source§impl Debug for PallocError
impl Debug for PallocError
Source§impl PartialEq for PallocError
impl PartialEq for PallocError
impl StructuralPartialEq for PallocError
Auto Trait Implementations§
impl Freeze for PallocError
impl RefUnwindSafe for PallocError
impl Send for PallocError
impl Sync for PallocError
impl Unpin for PallocError
impl UnwindSafe for PallocError
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