Struct miden_objects::crypto::merkle::LeafIndex
source · pub struct LeafIndex<const DEPTH: u8> { /* private fields */ }Expand description
The index of a leaf, at a depth known at compile-time.
Implementations§
Trait Implementations§
source§impl From<&RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#5}::{constant#0}>
impl From<&RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#5}::{constant#0}>
source§impl From<[BaseElement; 4]> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#3}::{constant#0}>
impl From<[BaseElement; 4]> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#3}::{constant#0}>
source§impl From<AccountId> for LeafIndex<ACCOUNT_TREE_DEPTH>
impl From<AccountId> for LeafIndex<ACCOUNT_TREE_DEPTH>
Account IDs are used as indexes in the account database, which is a tree of depth 64.
source§impl From<RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#4}::{constant#0}>
impl From<RpoDigest> for LeafIndex<miden_crypto::::merkle::smt::full::{impl#4}::{constant#0}>
source§impl<const DEPTH: u8> Ord for LeafIndex<DEPTH>
impl<const DEPTH: u8> Ord for LeafIndex<DEPTH>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<const DEPTH: u8> PartialEq for LeafIndex<DEPTH>
impl<const DEPTH: u8> PartialEq for LeafIndex<DEPTH>
source§impl<const DEPTH: u8> PartialOrd for LeafIndex<DEPTH>
impl<const DEPTH: u8> PartialOrd for LeafIndex<DEPTH>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<const DEPTH: u8> Copy for LeafIndex<DEPTH>
impl<const DEPTH: u8> Eq for LeafIndex<DEPTH>
impl<const DEPTH: u8> StructuralPartialEq for LeafIndex<DEPTH>
Auto Trait Implementations§
impl<const DEPTH: u8> Freeze for LeafIndex<DEPTH>
impl<const DEPTH: u8> RefUnwindSafe for LeafIndex<DEPTH>
impl<const DEPTH: u8> Send for LeafIndex<DEPTH>
impl<const DEPTH: u8> Sync for LeafIndex<DEPTH>
impl<const DEPTH: u8> Unpin for LeafIndex<DEPTH>
impl<const DEPTH: u8> UnwindSafe for LeafIndex<DEPTH>
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