Struct jmt::storage::TreeUpdateBatch
source · pub struct TreeUpdateBatch {
pub node_batch: NodeBatch,
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
§stale_node_index_batch: StaleNodeIndexBatch
§node_stats: Vec<NodeStats>
Trait Implementations§
source§impl BorshDeserialize for TreeUpdateBatch
impl BorshDeserialize for TreeUpdateBatch
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for TreeUpdateBatch
impl BorshSerialize for TreeUpdateBatch
source§impl Clone for TreeUpdateBatch
impl Clone for TreeUpdateBatch
source§fn clone(&self) -> TreeUpdateBatch
fn clone(&self) -> TreeUpdateBatch
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 TreeUpdateBatch
impl Debug for TreeUpdateBatch
source§impl Default for TreeUpdateBatch
impl Default for TreeUpdateBatch
source§fn default() -> TreeUpdateBatch
fn default() -> TreeUpdateBatch
Returns the “default value” for a type. Read more
source§impl PartialEq for TreeUpdateBatch
impl PartialEq for TreeUpdateBatch
source§fn eq(&self, other: &TreeUpdateBatch) -> bool
fn eq(&self, other: &TreeUpdateBatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TreeUpdateBatch
impl StructuralPartialEq for TreeUpdateBatch
Auto Trait Implementations§
impl Freeze for TreeUpdateBatch
impl RefUnwindSafe for TreeUpdateBatch
impl Send for TreeUpdateBatch
impl Sync for TreeUpdateBatch
impl Unpin for TreeUpdateBatch
impl UnwindSafe for TreeUpdateBatch
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more