pub enum MemoryError {
LimitExceeded,
OutOfMemory,
CapacityOverflow,
WorkExceeded,
}Expand description
A failed storage operation, distinct from malformed input.
Variants§
LimitExceeded
The shared capacity allowance cannot cover this allocation’s peak.
OutOfMemory
The underlying allocator could not supply storage.
CapacityOverflow
The requested capacity cannot be represented by an allocation layout.
WorkExceeded
An aggregate or borrowed parser-session work allowance is exhausted.
Trait Implementations§
Source§impl Clone for MemoryError
impl Clone for MemoryError
impl Copy for MemoryError
Source§impl Debug for MemoryError
impl Debug for MemoryError
Source§impl Display for MemoryError
impl Display for MemoryError
impl Eq for MemoryError
Source§impl From<MemoryError> for ErrorCode
impl From<MemoryError> for ErrorCode
Source§fn from(reason: MemoryError) -> Self
fn from(reason: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<SortError<MemoryError>> for MemoryError
impl From<SortError<MemoryError>> for MemoryError
Source§fn from(error: SortError<MemoryError>) -> Self
fn from(error: SortError<MemoryError>) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryError
impl PartialEq for MemoryError
impl StructuralPartialEq for MemoryError
Auto Trait Implementations§
impl Freeze for MemoryError
impl RefUnwindSafe for MemoryError
impl Send for MemoryError
impl Sync for MemoryError
impl Unpin for MemoryError
impl UnsafeUnpin for MemoryError
impl UnwindSafe for MemoryError
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