Struct diem_types::proof::SparseMerkleLeafNode
source · pub struct SparseMerkleLeafNode { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Arbitrary for SparseMerkleLeafNode
impl Arbitrary for SparseMerkleLeafNode
§type Parameters = (<HashValue as Arbitrary>::Parameters, <HashValue as Arbitrary>::Parameters)
type Parameters = (<HashValue as Arbitrary>::Parameters, <HashValue as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<HashValue as Arbitrary>::Strategy, <HashValue as Arbitrary>::Strategy), fn(_: (HashValue, HashValue)) -> SparseMerkleLeafNode>
type Strategy = Map<(<HashValue as Arbitrary>::Strategy, <HashValue as Arbitrary>::Strategy), fn(_: (HashValue, HashValue)) -> SparseMerkleLeafNode>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for SparseMerkleLeafNode
impl Clone for SparseMerkleLeafNode
source§fn clone(&self) -> SparseMerkleLeafNode
fn clone(&self) -> SparseMerkleLeafNode
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 CryptoHash for SparseMerkleLeafNode
impl CryptoHash for SparseMerkleLeafNode
source§impl Debug for SparseMerkleLeafNode
impl Debug for SparseMerkleLeafNode
source§impl<'de> Deserialize<'de> for SparseMerkleLeafNode
impl<'de> Deserialize<'de> for SparseMerkleLeafNode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SparseMerkleLeafNode> for SparseMerkleLeafNode
impl PartialEq<SparseMerkleLeafNode> for SparseMerkleLeafNode
source§fn eq(&self, other: &SparseMerkleLeafNode) -> bool
fn eq(&self, other: &SparseMerkleLeafNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SparseMerkleLeafNode
impl Serialize for SparseMerkleLeafNode
impl Copy for SparseMerkleLeafNode
impl Eq for SparseMerkleLeafNode
impl StructuralEq for SparseMerkleLeafNode
impl StructuralPartialEq for SparseMerkleLeafNode
Auto Trait Implementations§
impl RefUnwindSafe for SparseMerkleLeafNode
impl Send for SparseMerkleLeafNode
impl Sync for SparseMerkleLeafNode
impl Unpin for SparseMerkleLeafNode
impl UnwindSafe for SparseMerkleLeafNode
Blanket Implementations§
source§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,
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> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.