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 more
sourceimpl<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: 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AllocOrInitError<E>) -> bool
fn ne(&self, other: &AllocOrInitError<E>) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more