[−][src]Enum alloc_wg::collections::CollectionAllocErr
Augments AllocErr
with a CapacityOverflow
variant.
Variants
Error due to the computed capacity exceeding the collection's maximum
(usually isize::MAX
bytes).
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]
B::Ref: AllocRef,
#[must_use]
fn from(_: CapacityOverflow) -> Self
[src]
impl<B: BuildAllocRef> From<LayoutErr> for CollectionAllocErr<B> where
B::Ref: AllocRef,
[src]
B::Ref: AllocRef,
impl<B: BuildAllocRef> Clone for CollectionAllocErr<B> where
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: Clone,
[src]
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<B: BuildAllocRef> Eq for CollectionAllocErr<B> where
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: Eq,
[src]
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: Eq,
impl<B: BuildAllocRef> PartialEq<CollectionAllocErr<B>> for CollectionAllocErr<B> where
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: PartialEq,
[src]
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: PartialEq,
impl<B: BuildAllocRef> Debug for CollectionAllocErr<B> where
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: Debug,
[src]
B::Ref: AllocRef,
<B::Ref as AllocRef>::Error: Debug,
Auto Trait Implementations
impl<B> Send for CollectionAllocErr<B> where
<<B as BuildAllocRef>::Ref as AllocRef>::Error: Send,
<<B as BuildAllocRef>::Ref as AllocRef>::Error: Send,
impl<B> Sync for CollectionAllocErr<B> where
<<B as BuildAllocRef>::Ref as AllocRef>::Error: Sync,
<<B as BuildAllocRef>::Ref as AllocRef>::Error: Sync,
impl<B> Unpin for CollectionAllocErr<B> where
<<B as BuildAllocRef>::Ref as AllocRef>::Error: Unpin,
<<B as BuildAllocRef>::Ref as AllocRef>::Error: Unpin,
impl<B> UnwindSafe for CollectionAllocErr<B> where
<<B as BuildAllocRef>::Ref as AllocRef>::Error: UnwindSafe,
<<B as BuildAllocRef>::Ref as AllocRef>::Error: UnwindSafe,
impl<B> RefUnwindSafe for CollectionAllocErr<B> where
<<B as BuildAllocRef>::Ref as AllocRef>::Error: RefUnwindSafe,
<<B as BuildAllocRef>::Ref as AllocRef>::Error: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,