Struct AllocError

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.

Implementations

impl Clone for AllocError

fn clone(self: &Self) -> AllocError

impl Copy for AllocError

impl Debug for AllocError

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for AllocError

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Eq for AllocError

impl Error for AllocError

impl Freeze for AllocError

impl PartialEq for AllocError

fn eq(self: &Self, other: &AllocError) -> bool

impl RefUnwindSafe for AllocError

impl Send for AllocError

impl StructuralPartialEq for AllocError

impl Sync for AllocError

impl Unpin for AllocError

impl UnwindSafe for AllocError

impl<T> Any for AllocError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for AllocError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for AllocError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for AllocError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for AllocError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for AllocError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for AllocError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for AllocError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>