pub struct AllocError;
๐ฌThis is a nightly-only experimental API. (
allocator_api
#32838)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ยง
Sourceยงimpl Clone for AllocError
impl Clone for AllocError
Sourceยงfn clone(&self) -> AllocError
fn clone(&self) -> AllocError
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)where
Self:,
fn clone_from(&mut self, source: &Self)where
Self:,
Performs copy-assignment from
source
. Read moreSourceยงimpl Debug for AllocError
impl Debug for AllocError
Sourceยงimpl Display for AllocError
impl Display for AllocError
Sourceยงimpl Error for AllocError
impl Error for AllocError
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 PartialEq for AllocError
impl PartialEq for AllocError
impl Copy for AllocError
impl Eq for AllocError
impl StructuralPartialEq for AllocError
Auto Trait Implementationsยง
impl Freeze for AllocError
impl RefUnwindSafe for AllocError
impl Send for AllocError
impl Sync for AllocError
impl Unpin for AllocError
impl UnwindSafe for AllocError
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