Struct std::alloc::AllocError
source · [−]pub struct AllocError;Expand description
The AllocError error indicates an allocation failure
that may be due to resource exhaustion or to
something wrong when combining the given input arguments with this
allocator.
Trait Implementations
impl Clone for AllocError
source
impl Clone for AllocError
sourcefn clone(&self) -> AllocError
source
fn clone(&self) -> AllocError
sourceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0 · source
fn clone_from(&mut self, source: &Self)
1.0.0 · sourcePerforms copy-assignment from source. Read more
impl Debug for AllocError
source
impl Debug for AllocError
sourceimpl Display for AllocError
source
impl Display for AllocError
sourceimpl Error for AllocError
source
impl Error for AllocError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · source
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0 · sourceThe lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
source
fn backtrace(&self) -> Option<&Backtrace>
sourceReturns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0 · source
fn description(&self) -> &str
1.0.0 · source👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl PartialEq<AllocError> for AllocError
source
impl PartialEq<AllocError> for AllocError
sourceimpl Copy for AllocError
sourceimpl Eq for AllocError
sourceimpl StructuralEq for AllocError
sourceimpl StructuralPartialEq for AllocError
sourceAuto Trait Implementations
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
source
impl<T> BorrowMut<T> for T where
T: ?Sized,
sourcefn borrow_mut(&mut self) -> &mut T
const: unstable · source
fn borrow_mut(&mut self) -> &mut T
const: unstable · sourceMutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
source
impl<T> ToOwned for T where
T: Clone,
sourcetype Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
source
fn clone_into(&self, target: &mut T)
sourceUses borrowed data to replace owned data, usually by cloning. Read more