Enum miden_objects::crypto::merkle::SmtLeafError
source · pub enum SmtLeafError {
InconsistentKeys {
entries: Vec<(RpoDigest, [BaseElement; 4])>,
key_1: RpoDigest,
key_2: RpoDigest,
},
InvalidNumEntriesForMultiple(usize),
SingleKeyInconsistentWithLeafIndex {
key: RpoDigest,
leaf_index: LeafIndex<miden_crypto::::merkle::smt::full::error::SmtLeafError::{constant#0}>,
},
MultipleKeysInconsistentWithLeafIndex {
leaf_index_from_keys: LeafIndex<miden_crypto::::merkle::smt::full::error::SmtLeafError::{constant#1}>,
leaf_index_supplied: LeafIndex<miden_crypto::::merkle::smt::full::error::SmtLeafError::{constant#2}>,
},
}Variants§
InconsistentKeys
InvalidNumEntriesForMultiple(usize)
SingleKeyInconsistentWithLeafIndex
Fields
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)>
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) -> MerkleError
fn from(value: SmtLeafError) -> MerkleError
Converts to this type from the input type.
source§impl PartialEq for SmtLeafError
impl PartialEq for SmtLeafError
source§fn eq(&self, other: &SmtLeafError) -> bool
fn eq(&self, other: &SmtLeafError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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