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<MerklePath<E, DEPTH>> for MerklePath<E, DEPTH>
impl<E: PartialEq + Environment, const DEPTH: u8> PartialEq<MerklePath<E, DEPTH>> for MerklePath<E, DEPTH>
source§fn eq(&self, other: &MerklePath<E, DEPTH>) -> bool
fn eq(&self, other: &MerklePath<E, DEPTH>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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>, Global>)> for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> TryFrom<(Integer<E, u64>, Vec<Field<E>, Global>)> for MerklePath<E, DEPTH>
impl<E: Eq + Environment, const DEPTH: u8> Eq for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> StructuralEq for MerklePath<E, DEPTH>
impl<E: Environment, const DEPTH: u8> StructuralPartialEq for MerklePath<E, DEPTH>
Auto Trait Implementations§
impl<E, const DEPTH: u8> RefUnwindSafe for MerklePath<E, DEPTH>where E: RefUnwindSafe, <E as Environment>::Field: RefUnwindSafe,
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>where E: Unpin, <E as Environment>::Field: Unpin,
impl<E, const DEPTH: u8> UnwindSafe for MerklePath<E, DEPTH>where E: UnwindSafe, <E as Environment>::Field: UnwindSafe,
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
§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>,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.