pub enum FullError<S> {
IndexExhausted,
StorageFull(S),
}Expand description
Why a GenMap has no room for another value.
Variants§
IndexExhausted
The map has a slot at every index it can use and none of them are free. A map uses every index its keys can hold, except the largest value of the index type.
StorageFull(S)
None of the slots are free and the storage could not make room for
another one. The field says why, which for a Vec is its
TryReserveError.
Implementations§
Trait Implementations§
impl<S: Copy> Copy for FullError<S>
impl<S: Eq> Eq for FullError<S>
Source§impl<E, S> From<FullError<S>> for InsertWithError<E, S>
impl<E, S> From<FullError<S>> for InsertWithError<E, S>
impl<S: PartialEq> StructuralPartialEq for FullError<S>
Auto Trait Implementations§
impl<S> Freeze for FullError<S>where
S: Freeze,
impl<S> RefUnwindSafe for FullError<S>where
S: RefUnwindSafe,
impl<S> Send for FullError<S>where
S: Send,
impl<S> Sync for FullError<S>where
S: Sync,
impl<S> Unpin for FullError<S>where
S: Unpin,
impl<S> UnsafeUnpin for FullError<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FullError<S>where
S: UnwindSafe,
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