Enum allocator_api::alloc::CollectionAllocErr
source · pub enum CollectionAllocErr {
CapacityOverflow,
AllocErr,
}
Expand description
Augments AllocErr
with a CapacityOverflow variant.
Variants§
CapacityOverflow
Error due to the computed capacity exceeding the collection’s maximum
(usually isize::MAX
bytes).
AllocErr
Error due to the allocator (see the AllocErr
type’s docs).
Trait Implementations§
source§impl Clone for CollectionAllocErr
impl Clone for CollectionAllocErr
source§fn clone(&self) -> CollectionAllocErr
fn clone(&self) -> CollectionAllocErr
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