pub enum Error {
InvalidQuantum,
AllocatorError,
Empty,
NoSuchAllocation,
NoSource,
WrappingSpan,
UnalignedSpan,
AllocZeroSize,
Other(&'static str),
}
Expand description
An error returned from a function in this crate.
Variants§
InvalidQuantum
The specified quantum value was not a power of two.
AllocatorError
The allocator returned an error.
Empty
The operation could not be performed because the arena has no space available.
NoSuchAllocation
The block could not be freed because it was never allocated, or it was already removed.
NoSource
Space could not be imported because there was no source to import from.
WrappingSpan
The span would wrap around the address space.
UnalignedSpan
The span was not aligned to the quantum.
AllocZeroSize
Attempted to allocate a zero-sized block.
Other(&'static str)
Unknown error, returned by the source.
Trait Implementations§
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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