llrb_index/error.rs
1/// Error enumerates over all possible errors that this package
2/// shall return.
3#[derive(Debug, PartialEq)]
4pub enum Error<K>
5where
6 K: Clone + Ord,
7{
8 /// Fatal case, breaking one of the two LLRB rules.
9 ConsecutiveReds,
10 /// Fatal case, breaking one of the two LLRB rules. The String
11 /// component of this variant can be used for debugging.
12 UnbalancedBlacks(String),
13 /// Fatal case, index entries are not in sort-order.
14 SortError(K, K),
15 /// Returned by create() API when key is already present.
16 OverwriteKey,
17}