pub enum Error<K>{
ConsecutiveReds,
UnbalancedBlacks(String),
SortError(K, K),
OverwriteKey,
}
Expand description
Error enumerates over all possible errors that this package shall return.
Variants§
ConsecutiveReds
Fatal case, breaking one of the two LLRB rules.
UnbalancedBlacks(String)
Fatal case, breaking one of the two LLRB rules. The String component of this variant can be used for debugging.
SortError(K, K)
Fatal case, index entries are not in sort-order.
OverwriteKey
Returned by create() API when key is already present.
Trait Implementations§
impl<K> StructuralPartialEq for Error<K>
Auto Trait Implementations§
impl<K> Freeze for Error<K>where
K: Freeze,
impl<K> RefUnwindSafe for Error<K>where
K: RefUnwindSafe,
impl<K> Send for Error<K>where
K: Send,
impl<K> Sync for Error<K>where
K: Sync,
impl<K> Unpin for Error<K>where
K: Unpin,
impl<K> UnwindSafe for Error<K>where
K: 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