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 more