pub enum MapOfIndexesError {
DuplicateKeys,
KeyNotFound,
SmallerKey,
}
Expand description
Different kind of errors generated by the library
Variants§
DuplicateKeys
At least two elements with same keys. Keys must be uniques.
KeyNotFound
No elements were found with this key.
SmallerKey
Attempted to push an element with a lower key than last element.
Trait Implementations§
Source§impl Debug for MapOfIndexesError
impl Debug for MapOfIndexesError
Source§impl Display for MapOfIndexesError
impl Display for MapOfIndexesError
Source§impl Error for MapOfIndexesError
impl Error for MapOfIndexesError
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()
Source§impl Hash for MapOfIndexesError
impl Hash for MapOfIndexesError
Source§impl PartialEq for MapOfIndexesError
impl PartialEq for MapOfIndexesError
impl Eq for MapOfIndexesError
impl StructuralPartialEq for MapOfIndexesError
Auto Trait Implementations§
impl Freeze for MapOfIndexesError
impl RefUnwindSafe for MapOfIndexesError
impl Send for MapOfIndexesError
impl Sync for MapOfIndexesError
impl Unpin for MapOfIndexesError
impl UnwindSafe for MapOfIndexesError
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