[][src]Enum alloc_wg::collections::CollectionAllocErr

pub enum CollectionAllocErr<B: BuildAllocRef> where
    B::Ref: AllocRef
{ CapacityOverflow, AllocError { layout: NonZeroLayout, inner: <B::Ref as AllocRef>::Error, }, }

Augments AllocErr with a CapacityOverflow variant.

Variants

CapacityOverflow

Error due to the computed capacity exceeding the collection's maximum (usually isize::MAX bytes).

AllocError

The memory allocator returned an error

Fields of AllocError

layout: NonZeroLayout

The layout of allocation request that failed

inner: <B::Ref as AllocRef>::Error

Error returned by the allocator

Trait Implementations

impl<B: BuildAllocRef> From<CapacityOverflow> for CollectionAllocErr<B> where
    B::Ref: AllocRef
[src]

impl<B: BuildAllocRef> From<LayoutErr> for CollectionAllocErr<B> where
    B::Ref: AllocRef
[src]

impl<B: BuildAllocRef> Clone for CollectionAllocErr<B> where
    B::Ref: AllocRef,
    <B::Ref as AllocRef>::Error: Clone
[src]

impl<B: BuildAllocRef> Eq for CollectionAllocErr<B> where
    B::Ref: AllocRef,
    <B::Ref as AllocRef>::Error: Eq
[src]

impl<B: BuildAllocRef> PartialEq<CollectionAllocErr<B>> for CollectionAllocErr<B> where
    B::Ref: AllocRef,
    <B::Ref as AllocRef>::Error: PartialEq
[src]

impl<B: BuildAllocRef> Debug for CollectionAllocErr<B> where
    B::Ref: AllocRef,
    <B::Ref as AllocRef>::Error: Debug
[src]

Auto Trait Implementations

impl<B> Send for CollectionAllocErr<B> where
    <<B as BuildAllocRef>::Ref as AllocRef>::Error: Send

impl<B> Sync for CollectionAllocErr<B> where
    <<B as BuildAllocRef>::Ref as AllocRef>::Error: Sync

impl<B> Unpin for CollectionAllocErr<B> where
    <<B as BuildAllocRef>::Ref as AllocRef>::Error: Unpin

impl<B> UnwindSafe for CollectionAllocErr<B> where
    <<B as BuildAllocRef>::Ref as AllocRef>::Error: UnwindSafe

impl<B> RefUnwindSafe for CollectionAllocErr<B> where
    <<B as BuildAllocRef>::Ref as AllocRef>::Error: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]