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§
source§impl<E: Clone> Clone for AllocOrInitError<E>
impl<E: Clone> Clone for AllocOrInitError<E>
source§fn clone(&self) -> AllocOrInitError<E>
fn clone(&self) -> AllocOrInitError<E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug> Debug for AllocOrInitError<E>
impl<E: Debug> Debug for AllocOrInitError<E>
source§impl<E: Display> Display for AllocOrInitError<E>
impl<E: Display> Display for AllocOrInitError<E>
source§impl<E> From<AllocErr> for AllocOrInitError<E>
impl<E> From<AllocErr> for AllocOrInitError<E>
source§impl<E: PartialEq> PartialEq for AllocOrInitError<E>
impl<E: PartialEq> PartialEq for AllocOrInitError<E>
source§fn eq(&self, other: &AllocOrInitError<E>) -> bool
fn eq(&self, other: &AllocOrInitError<E>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<E: Eq> Eq for AllocOrInitError<E>
impl<E> StructuralPartialEq for AllocOrInitError<E>
Auto Trait Implementations§
impl<E> Freeze for AllocOrInitError<E>where
E: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)