Struct diem_sdk::types::proof::SparseMerkleLeafNode
pub struct SparseMerkleLeafNode { /* private fields */ }
Implementations§
§impl SparseMerkleLeafNode
impl SparseMerkleLeafNode
pub fn new(key: HashValue, value_hash: HashValue) -> SparseMerkleLeafNode
pub fn key(&self) -> HashValue
pub fn value_hash(&self) -> HashValue
Trait Implementations§
§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
.§fn arbitrary_with(
_top: <SparseMerkleLeafNode as Arbitrary>::Parameters
) -> <SparseMerkleLeafNode as Arbitrary>::Strategy
fn arbitrary_with( _top: <SparseMerkleLeafNode as Arbitrary>::Parameters ) -> <SparseMerkleLeafNode as Arbitrary>::Strategy
§impl Clone for SparseMerkleLeafNode
impl Clone for SparseMerkleLeafNode
§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 more§impl CryptoHash for SparseMerkleLeafNode
impl CryptoHash for SparseMerkleLeafNode
§impl Debug for SparseMerkleLeafNode
impl Debug for SparseMerkleLeafNode
§impl<'de> Deserialize<'de> for SparseMerkleLeafNode
impl<'de> Deserialize<'de> for SparseMerkleLeafNode
§fn deserialize<__D>(
__deserializer: __D
) -> Result<SparseMerkleLeafNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SparseMerkleLeafNode, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq<SparseMerkleLeafNode> for SparseMerkleLeafNode
impl PartialEq<SparseMerkleLeafNode> for SparseMerkleLeafNode
§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 ==
.§impl Serialize for SparseMerkleLeafNode
impl Serialize for SparseMerkleLeafNode
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.