Enum bumpalo::AllocOrInitError
source · [−]pub enum AllocOrInitError<E> {
Alloc(AllocErr),
Init(E),
}
Expand description
An error returned from Bump::try_alloc_try_with
.
Variants
Alloc(AllocErr)
Indicates that the initial allocation failed.
Init(E)
Indicates that the initializer failed with the contained error after allocation.
It is possible but not guaranteed that the allocated memory has been released back to the allocator at this point.
Trait Implementations
sourceimpl<E: Clone> Clone for AllocOrInitError<E>
impl<E: Clone> Clone for AllocOrInitError<E>
sourcefn clone(&self) -> AllocOrInitError<E>
fn clone(&self) -> AllocOrInitError<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<E: Debug> Debug for AllocOrInitError<E>
impl<E: Debug> Debug for AllocOrInitError<E>
sourceimpl<E: Display> Display for AllocOrInitError<E>
impl<E: Display> Display for AllocOrInitError<E>
sourceimpl<E> From<AllocErr> for AllocOrInitError<E>
impl<E> From<AllocErr> for AllocOrInitError<E>
sourceimpl<E: PartialEq> PartialEq<AllocOrInitError<E>> for AllocOrInitError<E>
impl<E: PartialEq> PartialEq<AllocOrInitError<E>> for AllocOrInitError<E>
sourcefn eq(&self, other: &AllocOrInitError<E>) -> bool
fn eq(&self, other: &AllocOrInitError<E>) -> bool
impl<E: Eq> Eq for AllocOrInitError<E>
impl<E> StructuralEq for AllocOrInitError<E>
impl<E> StructuralPartialEq for AllocOrInitError<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for AllocOrInitError<E>where
E: RefUnwindSafe,
impl<E> Send for AllocOrInitError<E>where
E: Send,
impl<E> Sync for AllocOrInitError<E>where
E: Sync,
impl<E> Unpin for AllocOrInitError<E>where
E: Unpin,
impl<E> UnwindSafe for AllocOrInitError<E>where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more