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<const DEPTH: u8> Deserializable for LeafIndex<DEPTH>
impl<const DEPTH: u8> Deserializable for LeafIndex<DEPTH>
Source§fn read_from<R>(
source: &mut R,
) -> Result<LeafIndex<DEPTH>, DeserializationError>where
R: ByteReader,
fn read_from<R>(
source: &mut R,
) -> Result<LeafIndex<DEPTH>, DeserializationError>where
R: ByteReader,
Reads a sequence of bytes from the provided
source
, attempts to deserialize these bytes
into Self
, and returns the result. Read moreSource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
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<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> PartialOrd for LeafIndex<DEPTH>
impl<const DEPTH: u8> PartialOrd for LeafIndex<DEPTH>
Source§impl<const DEPTH: u8> Serializable for LeafIndex<DEPTH>
impl<const DEPTH: u8> Serializable for LeafIndex<DEPTH>
Source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes
self
into bytes and writes these bytes into the target
.Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl<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