Struct AllocError
pub struct AllocError;
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
fn clone(&self) -> AllocError
impl Copy for AllocError
impl Debug for AllocError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for AllocError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for AllocError
fn assert_fields_are_eq(&self)
impl Error for AllocError
impl PartialEq for AllocError
fn eq(&self, other: &AllocError) -> bool
impl StructuralPartialEq for AllocError
impl TrivialClone 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 UnsafeUnpin for AllocError
impl UnwindSafe for AllocError
Blanket Implementations
impl<T> Any for AllocError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for AllocError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for AllocError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for AllocError
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for AllocError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for AllocError
where
T: Copy + Debug,
impl<T> SizeHint for AllocError
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for AllocError
impl<T, U> Into<U> for AllocError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for AllocError
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for AllocError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>