pub struct OutOfMemory { /* private fields */ }Expand description
Out-of-memory error.
This error is the sentinel for allocation failure due to memory exhaustion.
Constructing an Error from an OutOfMemory does not
allocate.
Allocation failure inside any Error method that must allocate
(e.g. Error::context) will propagate an
OutOfMemory error.
Implementations§
Source§impl OutOfMemory
impl OutOfMemory
Trait Implementations§
Source§impl Clone for OutOfMemory
impl Clone for OutOfMemory
Source§fn clone(&self) -> OutOfMemory
fn clone(&self) -> OutOfMemory
Returns a duplicate 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 OutOfMemory
impl Debug for OutOfMemory
Source§impl Default for OutOfMemory
impl Default for OutOfMemory
Source§fn default() -> OutOfMemory
fn default() -> OutOfMemory
Returns the “default value” for a type. Read more
Source§impl Display for OutOfMemory
impl Display for OutOfMemory
Source§impl Error for OutOfMemory
impl Error for OutOfMemory
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()
impl Copy for OutOfMemory
Auto Trait Implementations§
impl Freeze for OutOfMemory
impl RefUnwindSafe for OutOfMemory
impl Send for OutOfMemory
impl Sync for OutOfMemory
impl Unpin for OutOfMemory
impl UnsafeUnpin for OutOfMemory
impl UnwindSafe for OutOfMemory
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