Enum blart::nodes::visitor::well_formed::MalformedTreeError
source · pub enum MalformedTreeError<K, V> {
LoopFound {
node_ptr: OpaqueNodePtr<K, V>,
first_observed: KeyPrefix,
later_observed: KeyPrefix,
},
WrongChildrenCount {
key_prefix: KeyPrefix,
inner_node_type: NodeType,
num_children: usize,
},
PrefixMismatch {
expected_prefix: KeyPrefix,
entire_key: K,
},
}
Expand description
An issue with the well-formed-ness of the tree. See the documentation on
WellFormedChecker
for more context.
Variants§
LoopFound
A loop was observed between nodes
Fields
§
node_ptr: OpaqueNodePtr<K, V>
The node that was observed more than once while traversing the tree
WrongChildrenCount
An inner node had an incorrect number of children
Fields
§
inner_node_type: NodeType
The type of the inner node (InnerNode4, InnerNode16, etc)
This field is guaranteed not to be NodeType::Leaf
PrefixMismatch
The expected key prefix did not match the actual prefix that was present in the leaf
Trait Implementations§
source§impl<K, V> Clone for MalformedTreeError<K, V>where
K: Clone,
impl<K, V> Clone for MalformedTreeError<K, V>where
K: Clone,
source§impl<K, V> Debug for MalformedTreeError<K, V>where
K: AsBytes,
impl<K, V> Debug for MalformedTreeError<K, V>where
K: AsBytes,
source§impl<K, V> Display for MalformedTreeError<K, V>where
K: AsBytes,
impl<K, V> Display for MalformedTreeError<K, V>where
K: AsBytes,
source§impl<K, V> Error for MalformedTreeError<K, V>where
K: AsBytes,
impl<K, V> Error for MalformedTreeError<K, V>where
K: AsBytes,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<K, V> PartialEq for MalformedTreeError<K, V>where
K: Eq,
impl<K, V> PartialEq for MalformedTreeError<K, V>where
K: Eq,
impl<K, V> Eq for MalformedTreeError<K, V>where
K: Eq,
Auto Trait Implementations§
impl<K, V> Freeze for MalformedTreeError<K, V>where
K: Freeze,
impl<K, V> RefUnwindSafe for MalformedTreeError<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> !Send for MalformedTreeError<K, V>
impl<K, V> !Sync for MalformedTreeError<K, V>
impl<K, V> Unpin for MalformedTreeError<K, V>
impl<K, V> UnwindSafe for MalformedTreeError<K, V>where
K: UnwindSafe,
V: 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