pub enum IndexError {
NoSuchRegion,
NoIndexAvailable,
NoFittingRegion,
OutOfMemory,
RegionTooThin,
EmptyPtr,
IndexAlreadyBorrowed,
}Expand description
The Error type wich the Allocator can raise.
Variants§
NoSuchRegion
The memory region trying to be accessed doesn’t exists.
NoIndexAvailable
The MemoryIndex is full and no more allocation can be performed.
NoFittingRegion
No free region match the allocation needs.
OutOfMemory
The address provided isn’t in the memory range.
RegionTooThin
The region is too thin for the operation trying to be executed on it.
EmptyPtr
The pointer provided is null.
IndexAlreadyBorrowed
The MemoryIndex is already borrowed.
Trait Implementations§
Source§impl Clone for IndexError
impl Clone for IndexError
Source§fn clone(&self) -> IndexError
fn clone(&self) -> IndexError
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 IndexError
impl Debug for IndexError
Source§impl PartialEq for IndexError
impl PartialEq for IndexError
impl Copy for IndexError
impl Eq for IndexError
impl StructuralPartialEq for IndexError
Auto Trait Implementations§
impl Freeze for IndexError
impl RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl UnwindSafe for IndexError
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