Enum miden_crypto::merkle::MerkleError
source · pub enum MerkleError {
Show 13 variants
ConflictingRoots(Vec<RpoDigest>),
DepthTooSmall(u8),
DepthTooBig(u64),
DuplicateValuesForIndex(u64),
DuplicateValuesForKey(RpoDigest),
InvalidIndex {
depth: u8,
value: u64,
},
InvalidDepth {
expected: u8,
provided: u8,
},
InvalidPath(MerklePath),
InvalidNumEntries(usize, usize),
NodeNotInSet(NodeIndex),
NodeNotInStore(RpoDigest, NodeIndex),
NumLeavesNotPowerOfTwo(usize),
RootNotInStore(RpoDigest),
}
Variants§
ConflictingRoots(Vec<RpoDigest>)
DepthTooSmall(u8)
DepthTooBig(u64)
DuplicateValuesForIndex(u64)
DuplicateValuesForKey(RpoDigest)
InvalidIndex
InvalidDepth
InvalidPath(MerklePath)
InvalidNumEntries(usize, usize)
NodeNotInSet(NodeIndex)
NodeNotInStore(RpoDigest, NodeIndex)
NumLeavesNotPowerOfTwo(usize)
RootNotInStore(RpoDigest)
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.0.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.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 PartialEq for MerkleError
impl PartialEq for MerkleError
source§fn eq(&self, other: &MerkleError) -> bool
fn eq(&self, other: &MerkleError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MerkleError
impl StructuralEq for MerkleError
impl StructuralPartialEq for MerkleError
Auto Trait Implementations§
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