Struct diem_jellyfish_merkle::TreeUpdateBatch
source · pub struct TreeUpdateBatch<V> {
pub node_batch: NodeBatch<V>,
pub stale_node_index_batch: StaleNodeIndexBatch,
pub node_stats: Vec<NodeStats>,
}
Expand description
This is a wrapper of NodeBatch
,
StaleNodeIndexBatch
and some stats of nodes that represents
the incremental updates of a tree and pruning indices after applying a write set,
which is a vector of hashed_account_address
and new_value
pairs.
Fields§
§node_batch: NodeBatch<V>
§stale_node_index_batch: StaleNodeIndexBatch
§node_stats: Vec<NodeStats>
Trait Implementations§
source§impl<V: Clone> Clone for TreeUpdateBatch<V>
impl<V: Clone> Clone for TreeUpdateBatch<V>
source§fn clone(&self) -> TreeUpdateBatch<V>
fn clone(&self) -> TreeUpdateBatch<V>
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<V: Debug> Debug for TreeUpdateBatch<V>
impl<V: Debug> Debug for TreeUpdateBatch<V>
source§impl<V: Default> Default for TreeUpdateBatch<V>
impl<V: Default> Default for TreeUpdateBatch<V>
source§fn default() -> TreeUpdateBatch<V>
fn default() -> TreeUpdateBatch<V>
Returns the “default value” for a type. Read more
source§impl<V: PartialEq> PartialEq<TreeUpdateBatch<V>> for TreeUpdateBatch<V>
impl<V: PartialEq> PartialEq<TreeUpdateBatch<V>> for TreeUpdateBatch<V>
source§fn eq(&self, other: &TreeUpdateBatch<V>) -> bool
fn eq(&self, other: &TreeUpdateBatch<V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<V: Eq> Eq for TreeUpdateBatch<V>
impl<V> StructuralEq for TreeUpdateBatch<V>
impl<V> StructuralPartialEq for TreeUpdateBatch<V>
Auto Trait Implementations§
impl<V> RefUnwindSafe for TreeUpdateBatch<V>where V: RefUnwindSafe,
impl<V> Send for TreeUpdateBatch<V>where V: Send,
impl<V> Sync for TreeUpdateBatch<V>where V: Sync,
impl<V> Unpin for TreeUpdateBatch<V>
impl<V> UnwindSafe for TreeUpdateBatch<V>where V: RefUnwindSafe,
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.