pub enum SelfCheckError {
MissingNode(u64),
IncorrectHash(u64),
TooManyInternalNodes,
TooManyLeaves,
}Expand description
An error representing what went wrong when running MemoryBackedTree::self_check.
Variants§
MissingNode(u64)
The node at the given index is missing
IncorrectHash(u64)
The node at the given index has the wrong hash
TooManyInternalNodes
The number of internal nodes in this struct exceeds the number of nodes that a tree with this many leaves would hold.
TooManyLeaves
There are so many leaves that the full tree could not possibly fit in memory
Trait Implementations§
Source§impl Debug for SelfCheckError
impl Debug for SelfCheckError
Auto Trait Implementations§
impl Freeze for SelfCheckError
impl RefUnwindSafe for SelfCheckError
impl Send for SelfCheckError
impl Sync for SelfCheckError
impl Unpin for SelfCheckError
impl UnwindSafe for SelfCheckError
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