pub enum SlabError {
SlabIndexOutOfRange(usize, usize),
SlotIndexOutOfRange(usize, usize, usize),
SlotAlreadyFree {
slab: usize,
slot: usize,
},
}Expand description
Errors returned by SlabAllocator.
Variants§
SlabIndexOutOfRange(usize, usize)
A handle points outside the slab array bounds.
SlotIndexOutOfRange(usize, usize, usize)
A slot index is outside the capacity of the addressed slab.
SlotAlreadyFree
The addressed slot is free and cannot be read.
Trait Implementations§
Source§impl Error for SlabError
impl Error for SlabError
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()
Auto Trait Implementations§
impl Freeze for SlabError
impl RefUnwindSafe for SlabError
impl Send for SlabError
impl Sync for SlabError
impl Unpin for SlabError
impl UnsafeUnpin for SlabError
impl UnwindSafe for SlabError
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