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 moreSource§impl Debug for CollectionAllocErr
impl Debug for CollectionAllocErr
Source§impl From<LayoutError> for CollectionAllocErr
impl From<LayoutError> for CollectionAllocErr
Source§impl PartialEq for CollectionAllocErr
impl PartialEq for CollectionAllocErr
impl Eq for CollectionAllocErr
impl StructuralPartialEq for CollectionAllocErr
Auto Trait Implementations§
impl Freeze for CollectionAllocErr
impl RefUnwindSafe for CollectionAllocErr
impl Send for CollectionAllocErr
impl Sync for CollectionAllocErr
impl Unpin for CollectionAllocErr
impl UnwindSafe for CollectionAllocErr
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