pub struct MerklePath<E: Environment, const DEPTH: u8> { /* private fields */ }
Implementations§
Source§impl<E: Environment, const DEPTH: u8> MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> MerklePath<E, DEPTH>
Sourcepub fn leaf_index(&self) -> U64<E>
pub fn leaf_index(&self) -> U64<E>
Returns the leaf index for the path.
Trait Implementations§
Source§impl<E: Clone + Environment, const DEPTH: u8> Clone for MerklePath<E, DEPTH>
impl<E: Clone + Environment, const DEPTH: u8> Clone for MerklePath<E, DEPTH>
Source§fn clone(&self) -> MerklePath<E, DEPTH>
fn clone(&self) -> MerklePath<E, DEPTH>
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<E: Debug + Environment, const DEPTH: u8> Debug for MerklePath<E, DEPTH>
impl<E: Debug + Environment, const DEPTH: u8> Debug for MerklePath<E, DEPTH>
Source§impl<'de, E: Environment, const DEPTH: u8> Deserialize<'de> for MerklePath<E, DEPTH>
impl<'de, E: Environment, const DEPTH: u8> Deserialize<'de> for MerklePath<E, DEPTH>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<E: Environment, const DEPTH: u8> FromBytes for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> FromBytes for MerklePath<E, DEPTH>
Source§impl<E: Hash + Environment, const DEPTH: u8> Hash for MerklePath<E, DEPTH>
impl<E: Hash + Environment, const DEPTH: u8> Hash for MerklePath<E, DEPTH>
Source§impl<E: PartialEq + Environment, const DEPTH: u8> PartialEq for MerklePath<E, DEPTH>
impl<E: PartialEq + Environment, const DEPTH: u8> PartialEq for MerklePath<E, DEPTH>
Source§impl<E: Environment, const DEPTH: u8> Serialize for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> Serialize for MerklePath<E, DEPTH>
Source§impl<E: Environment, const DEPTH: u8> ToBytes for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> ToBytes for MerklePath<E, DEPTH>
Source§impl<E: Environment, const DEPTH: u8> TryFrom<(Integer<E, u64>, Vec<Field<E>>)> for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> TryFrom<(Integer<E, u64>, Vec<Field<E>>)> for MerklePath<E, DEPTH>
impl<E: Eq + Environment, const DEPTH: u8> Eq for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> StructuralPartialEq for MerklePath<E, DEPTH>
Auto Trait Implementations§
impl<E, const DEPTH: u8> Freeze for MerklePath<E, DEPTH>
impl<E, const DEPTH: u8> RefUnwindSafe for MerklePath<E, DEPTH>
impl<E, const DEPTH: u8> Send for MerklePath<E, DEPTH>
impl<E, const DEPTH: u8> Sync for MerklePath<E, DEPTH>
impl<E, const DEPTH: u8> Unpin for MerklePath<E, DEPTH>
impl<E, const DEPTH: u8> UnwindSafe for MerklePath<E, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str,
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more