pub enum AllocationGrowError {
GrowWouldShrink,
SizeIsZero,
OutOfMemory,
AlignmentFailure,
InternalError,
}Expand description
Failures caused by Allocator::grow() or Allocator::grow_zeroed().
Variants§
Trait Implementations§
Source§impl Clone for AllocationGrowError
impl Clone for AllocationGrowError
Source§fn clone(&self) -> AllocationGrowError
fn clone(&self) -> AllocationGrowError
Returns a duplicate 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 AllocationGrowError
impl Debug for AllocationGrowError
Source§impl Display for AllocationGrowError
impl Display for AllocationGrowError
Source§impl Error for AllocationGrowError
impl Error for AllocationGrowError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<MemoryError> for AllocationGrowError
impl From<MemoryError> for AllocationGrowError
Source§fn from(v: MemoryError) -> AllocationGrowError
fn from(v: MemoryError) -> AllocationGrowError
Converts to this type from the input type.
Source§impl PartialEq for AllocationGrowError
impl PartialEq for AllocationGrowError
impl Copy for AllocationGrowError
impl Eq for AllocationGrowError
impl StructuralPartialEq for AllocationGrowError
Auto Trait Implementations§
impl Freeze for AllocationGrowError
impl RefUnwindSafe for AllocationGrowError
impl Send for AllocationGrowError
impl Sync for AllocationGrowError
impl Unpin for AllocationGrowError
impl UnwindSafe for AllocationGrowError
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