pub struct AllocFailed {
pub requested_size: usize,
pub error_code: Option<i32>,
pub kind: AllocErrorKind,
}Expand description
Error type for system memory allocation failures.
Fields§
§requested_size: usizeThe size that was requested.
error_code: Option<i32>Platform-specific error code, if available.
kind: AllocErrorKindError kind for better diagnostics.
Implementations§
Source§impl AllocFailed
impl AllocFailed
Trait Implementations§
Source§impl Clone for AllocFailed
impl Clone for AllocFailed
Source§fn clone(&self) -> AllocFailed
fn clone(&self) -> AllocFailed
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 AllocFailed
impl Debug for AllocFailed
Source§impl Display for AllocFailed
impl Display for AllocFailed
Source§impl Error for AllocFailed
impl Error for AllocFailed
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()
impl Copy for AllocFailed
Auto Trait Implementations§
impl Freeze for AllocFailed
impl RefUnwindSafe for AllocFailed
impl Send for AllocFailed
impl Sync for AllocFailed
impl Unpin for AllocFailed
impl UnsafeUnpin for AllocFailed
impl UnwindSafe for AllocFailed
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