llrb-index 0.4.0

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