pub enum MemoryError {
OutOfBounds(MemAddr, Size, Size),
DoubleFree(MemAddr),
UseAfterFree(MemAddr),
NotAllocated(MemAddr),
}Expand description
Error type for memory operations
Variants§
OutOfBounds(MemAddr, Size, Size)
Address is out of bounds (addr, len, bounds)
DoubleFree(MemAddr)
Double free detected
UseAfterFree(MemAddr)
Use after free detected
NotAllocated(MemAddr)
Address was never allocated
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryError
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnsafeUnpin for MemoryError
impl UnwindSafe for MemoryError
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