#[repr(u8)]pub enum ObjectMemoryError {
NullPageAccess,
OutOfBounds(usize),
}
Expand description
Kinds of object memory errors.
Variants§
NullPageAccess
Tried to access an object’s null page
OutOfBounds(usize)
Tried to access outside of an object
Trait Implementations§
source§impl Clone for ObjectMemoryError
impl Clone for ObjectMemoryError
source§fn clone(&self) -> ObjectMemoryError
fn clone(&self) -> ObjectMemoryError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ObjectMemoryError
impl Debug for ObjectMemoryError
source§impl Ord for ObjectMemoryError
impl Ord for ObjectMemoryError
source§fn cmp(&self, other: &ObjectMemoryError) -> Ordering
fn cmp(&self, other: &ObjectMemoryError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ObjectMemoryError
impl PartialEq for ObjectMemoryError
source§impl PartialOrd for ObjectMemoryError
impl PartialOrd for ObjectMemoryError
impl Copy for ObjectMemoryError
impl Eq for ObjectMemoryError
impl StructuralPartialEq for ObjectMemoryError
Auto Trait Implementations§
impl Freeze for ObjectMemoryError
impl ObjSafe for ObjectMemoryError
impl RefUnwindSafe for ObjectMemoryError
impl Send for ObjectMemoryError
impl Sync for ObjectMemoryError
impl Unpin for ObjectMemoryError
impl UnwindSafe for ObjectMemoryError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.