Enum CollectionAllocErr

enum CollectionAllocErr

Error type for APIs with fallible heap allocation

Variants

CapacityOverflow

Overflow usize::MAX or other error during size computation

AllocErr { layout: alloc::alloc::Layout }

The allocator return an error

Implementations

impl Debug for CollectionAllocErr

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

impl Display for CollectionAllocErr

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

impl Freeze for CollectionAllocErr

impl From for CollectionAllocErr

fn from(_: LayoutErr) -> Self

impl RefUnwindSafe for CollectionAllocErr

impl Send for CollectionAllocErr

impl Sync for CollectionAllocErr

impl Unpin for CollectionAllocErr

impl UnsafeUnpin for CollectionAllocErr

impl UnwindSafe for CollectionAllocErr

impl<T> Any for CollectionAllocErr

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for CollectionAllocErr

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

impl<T> BorrowMut for CollectionAllocErr

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

impl<T> From for CollectionAllocErr

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for CollectionAllocErr

fn to_string(self: &Self) -> String

impl<T, U> Into for CollectionAllocErr

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 CollectionAllocErr

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

impl<T, U> TryInto for CollectionAllocErr

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