Struct diem_jellyfish_merkle::node_type::Child
source · pub struct Child {
pub hash: HashValue,
pub version: Version,
pub is_leaf: bool,
}
Expand description
Each child of InternalNode
encapsulates a nibble forking at this node.
Fields§
§hash: HashValue
§version: Version
§is_leaf: bool
Implementations§
Trait Implementations§
source§impl Arbitrary for Child
impl Arbitrary for Child
§type Parameters = (<HashValue as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <bool as Arbitrary>::Parameters)
type Parameters = (<HashValue as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <bool 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, <u64 as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy), fn(_: (HashValue, u64, bool)) -> Child>
type Strategy = Map<(<HashValue as Arbitrary>::Strategy, <u64 as Arbitrary>::Strategy, <bool as Arbitrary>::Strategy), fn(_: (HashValue, u64, bool)) -> Child>
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 PartialEq<Child> for Child
impl PartialEq<Child> for Child
impl Eq for Child
impl StructuralEq for Child
impl StructuralPartialEq for Child
Auto Trait Implementations§
impl RefUnwindSafe for Child
impl Send for Child
impl Sync for Child
impl Unpin for Child
impl UnwindSafe for Child
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.