Struct diem_jellyfish_merkle::StaleNodeIndex
source · pub struct StaleNodeIndex {
pub stale_since_version: Version,
pub node_key: NodeKey,
}
Expand description
Indicates a node becomes stale since stale_since_version
.
Fields§
§stale_since_version: Version
The version since when the node is overwritten and becomes stale.
node_key: NodeKey
The NodeKey
identifying the node associated with this
record.
Trait Implementations§
source§impl Arbitrary for StaleNodeIndex
impl Arbitrary for StaleNodeIndex
§type Parameters = (<u64 as Arbitrary>::Parameters, <NodeKey as Arbitrary>::Parameters)
type Parameters = (<u64 as Arbitrary>::Parameters, <NodeKey as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<u64 as Arbitrary>::Strategy, <NodeKey as Arbitrary>::Strategy), fn(_: (u64, NodeKey)) -> StaleNodeIndex>
type Strategy = Map<(<u64 as Arbitrary>::Strategy, <NodeKey as Arbitrary>::Strategy), fn(_: (u64, NodeKey)) -> StaleNodeIndex>
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 StaleNodeIndex
impl Clone for StaleNodeIndex
source§fn clone(&self) -> StaleNodeIndex
fn clone(&self) -> StaleNodeIndex
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 Debug for StaleNodeIndex
impl Debug for StaleNodeIndex
source§impl Hash for StaleNodeIndex
impl Hash for StaleNodeIndex
source§impl Ord for StaleNodeIndex
impl Ord for StaleNodeIndex
source§fn cmp(&self, other: &StaleNodeIndex) -> Ordering
fn cmp(&self, other: &StaleNodeIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StaleNodeIndex> for StaleNodeIndex
impl PartialEq<StaleNodeIndex> for StaleNodeIndex
source§fn eq(&self, other: &StaleNodeIndex) -> bool
fn eq(&self, other: &StaleNodeIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<StaleNodeIndex> for StaleNodeIndex
impl PartialOrd<StaleNodeIndex> for StaleNodeIndex
source§fn partial_cmp(&self, other: &StaleNodeIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &StaleNodeIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for StaleNodeIndex
impl StructuralEq for StaleNodeIndex
impl StructuralPartialEq for StaleNodeIndex
Auto Trait Implementations§
impl RefUnwindSafe for StaleNodeIndex
impl Send for StaleNodeIndex
impl Sync for StaleNodeIndex
impl Unpin for StaleNodeIndex
impl UnwindSafe for StaleNodeIndex
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.