pub enum SmtLeafError {
InconsistentKeys {
entries: Vec<(RpoDigest, Word)>,
key_1: RpoDigest,
key_2: RpoDigest,
},
InvalidNumEntriesForMultiple(usize),
SingleKeyInconsistentWithLeafIndex {
key: RpoDigest,
leaf_index: LeafIndex<SMT_DEPTH>,
},
MultipleKeysInconsistentWithLeafIndex {
leaf_index_from_keys: LeafIndex<SMT_DEPTH>,
leaf_index_supplied: LeafIndex<SMT_DEPTH>,
},
}
Variants§
InconsistentKeys
InvalidNumEntriesForMultiple(usize)
SingleKeyInconsistentWithLeafIndex
MultipleKeysInconsistentWithLeafIndex
Trait Implementations§
source§impl Clone for SmtLeafError
impl Clone for SmtLeafError
source§fn clone(&self) -> SmtLeafError
fn clone(&self) -> SmtLeafError
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 SmtLeafError
impl Debug for SmtLeafError
source§impl Display for SmtLeafError
impl Display for SmtLeafError
source§impl Error for SmtLeafError
impl Error for SmtLeafError
1.30.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.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 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 SmtLeafError
impl PartialEq for SmtLeafError
impl Eq for SmtLeafError
impl StructuralPartialEq for SmtLeafError
Auto Trait Implementations§
impl Freeze for SmtLeafError
impl RefUnwindSafe for SmtLeafError
impl Send for SmtLeafError
impl Sync for SmtLeafError
impl Unpin for SmtLeafError
impl UnwindSafe for SmtLeafError
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
)