pub enum FreeError {
NullPtrFree,
DoubleFree,
FreeOutOfBounds,
UnalignedFree,
}
Expand description
Enum representing the pssible errors that may happen when freeing a pointer.
Variants§
NullPtrFree
The freed pointer was a null pointer
DoubleFree
The freed pointer was already marked as free.
FreeOutOfBounds
The freed pointer is outside the allocator’s heap bounds.
UnalignedFree
The freed pointer is not aligned with any block’s start address.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FreeError
impl RefUnwindSafe for FreeError
impl Send for FreeError
impl Sync for FreeError
impl Unpin for FreeError
impl UnwindSafe for FreeError
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