pub enum SecondaryMapInsertError {
SentinelIndex,
IndexOutOfRange {
index: u32,
},
Allocation(TryReserveError),
}Expand description
Errors returned when a SecondaryMap rejects an insertion.
Variants§
SentinelIndex
Index 0 is reserved for the primary map’s sentinel slot.
IndexOutOfRange
The key index cannot be represented as a valid slot length.
Allocation(TryReserveError)
The backing slot vector could not reserve the requested capacity.
Trait Implementations§
Source§impl Debug for SecondaryMapInsertError
impl Debug for SecondaryMapInsertError
Source§impl Display for SecondaryMapInsertError
impl Display for SecondaryMapInsertError
Source§impl Error for SecondaryMapInsertError
impl Error for SecondaryMapInsertError
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 SecondaryMapInsertError
impl RefUnwindSafe for SecondaryMapInsertError
impl Send for SecondaryMapInsertError
impl Sync for SecondaryMapInsertError
impl Unpin for SecondaryMapInsertError
impl UnsafeUnpin for SecondaryMapInsertError
impl UnwindSafe for SecondaryMapInsertError
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