pub enum MemoryAllocationError {
OutOfMemory,
OutOfSystemMemory,
DoubleFree,
NotAllocated,
NotInRegion,
}
Variants§
Trait Implementations§
Source§impl Clone for MemoryAllocationError
impl Clone for MemoryAllocationError
Source§fn clone(&self) -> MemoryAllocationError
fn clone(&self) -> MemoryAllocationError
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 MemoryAllocationError
impl Debug for MemoryAllocationError
Source§impl Display for MemoryAllocationError
impl Display for MemoryAllocationError
Source§impl Error for MemoryAllocationError
impl Error for MemoryAllocationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<MapMemoryError> for MemoryAllocationError
impl From<MapMemoryError> for MemoryAllocationError
Source§fn from(value: MapMemoryError) -> Self
fn from(value: MapMemoryError) -> Self
Converts to this type from the input type.
Source§impl Ord for MemoryAllocationError
impl Ord for MemoryAllocationError
Source§fn cmp(&self, other: &MemoryAllocationError) -> Ordering
fn cmp(&self, other: &MemoryAllocationError) -> 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 MemoryAllocationError
impl PartialEq for MemoryAllocationError
Source§impl PartialOrd for MemoryAllocationError
impl PartialOrd for MemoryAllocationError
impl Copy for MemoryAllocationError
impl Eq for MemoryAllocationError
impl StructuralPartialEq for MemoryAllocationError
Auto Trait Implementations§
impl Freeze for MemoryAllocationError
impl RefUnwindSafe for MemoryAllocationError
impl Send for MemoryAllocationError
impl Sync for MemoryAllocationError
impl Unpin for MemoryAllocationError
impl UnwindSafe for MemoryAllocationError
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