pub enum MerkleError {
Show 15 variants
ConflictingRoots(Vec<RpoDigest>),
DepthTooSmall(u8),
DepthTooBig(u64),
DuplicateValuesForIndex(u64),
DuplicateValuesForKey(RpoDigest),
InvalidIndex {
depth: u8,
value: u64,
},
InvalidDepth {
expected: u8,
provided: u8,
},
InvalidSubtreeDepth {
subtree_depth: u8,
tree_depth: u8,
},
InvalidPath(MerklePath),
InvalidNumEntries(usize),
NodeNotInSet(NodeIndex),
NodeNotInStore(RpoDigest, NodeIndex),
NumLeavesNotPowerOfTwo(usize),
RootNotInStore(RpoDigest),
SmtLeaf(SmtLeafError),
}
Variants§
ConflictingRoots(Vec<RpoDigest>)
DepthTooSmall(u8)
DepthTooBig(u64)
DuplicateValuesForIndex(u64)
DuplicateValuesForKey(RpoDigest)
InvalidIndex
InvalidDepth
InvalidSubtreeDepth
InvalidPath(MerklePath)
InvalidNumEntries(usize)
NodeNotInSet(NodeIndex)
NodeNotInStore(RpoDigest, NodeIndex)
NumLeavesNotPowerOfTwo(usize)
RootNotInStore(RpoDigest)
SmtLeaf(SmtLeafError)
Trait Implementations§
source§impl Clone for MerkleError
impl Clone for MerkleError
source§fn clone(&self) -> MerkleError
fn clone(&self) -> MerkleError
Returns a copy of the value. Read more
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MerkleError
impl Debug for MerkleError
source§impl Display for MerkleError
impl Display for MerkleError
source§impl Error for MerkleError
impl Error for MerkleError
1.81.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.81.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SmtLeafError> for MerkleError
impl From<SmtLeafError> for MerkleError
source§fn from(value: SmtLeafError) -> Self
fn from(value: SmtLeafError) -> Self
Converts to this type from the input type.
source§impl PartialEq for MerkleError
impl PartialEq for MerkleError
impl Eq for MerkleError
impl StructuralPartialEq for MerkleError
Auto Trait Implementations§
impl Freeze for MerkleError
impl RefUnwindSafe for MerkleError
impl Send for MerkleError
impl Sync for MerkleError
impl Unpin for MerkleError
impl UnwindSafe for MerkleError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)