pub enum AccessError {
DoubleMalloc {
addr: usize,
len: usize,
},
InvalidRead {
addr: usize,
len: usize,
},
InvalidWrite {
addr: usize,
len: usize,
},
InvalidFree {
addr: usize,
},
OutOfBounds {
addr: usize,
len: usize,
},
}
Expand description
Error types for memory checker.
Variants§
DoubleMalloc
Malloc over already malloc’d memory.
InvalidRead
Read from uninitialized or undefined memory.
InvalidWrite
Write to uninitialized memory.
InvalidFree
Free of non-malloc’d pointer.
OutOfBounds
Access out of bounds of heap or stack.
Trait Implementations§
source§impl Debug for AccessError
impl Debug for AccessError
source§impl PartialEq for AccessError
impl PartialEq for AccessError
impl StructuralPartialEq for AccessError
Auto Trait Implementations§
impl Freeze for AccessError
impl RefUnwindSafe for AccessError
impl Send for AccessError
impl Sync for AccessError
impl Unpin for AccessError
impl UnwindSafe for AccessError
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