Struct everscale_types::models::block::WorkchainShardHashes
source · pub struct WorkchainShardHashes { /* private fields */ }Expand description
A tree of the most recent descriptions for all currently existing shards for a single workchain.
Implementations§
source§impl WorkchainShardHashes
impl WorkchainShardHashes
sourcepub fn keys(&self) -> WorkchainShardsTreeKeysIter<'_> ⓘ
pub fn keys(&self) -> WorkchainShardsTreeKeysIter<'_> ⓘ
Gets an iterator over the keys of the shard descriptions tree, sorted by key.
The iterator element type is Result<ShardIdent>.
If the tree is invalid, finishes after the first invalid element, returning an error.
sourcepub fn iter(&self) -> WorkchainShardHashesIter<'_> ⓘ
pub fn iter(&self) -> WorkchainShardHashesIter<'_> ⓘ
Gets an iterator over the entries of the shard descriptions tree, sorted by key.
The iterator element type is Result<(ShardIdent, ShardDescription)>.
If the tree is invalid, finishes after the first invalid element, returning an error.
sourcepub fn latest_blocks(&self) -> WorkchainLatestBlocksIter<'_> ⓘ
pub fn latest_blocks(&self) -> WorkchainLatestBlocksIter<'_> ⓘ
Gets an iterator over the latest block in the current workchain, sorted by key.
The iterator element type is Result<BlockId>.
If the tree is invalid, finishes after the first invalid element, returning an error.
sourcepub fn raw_iter(&self) -> WorkchainShardsTreeRawIter<'_> ⓘ
pub fn raw_iter(&self) -> WorkchainShardsTreeRawIter<'_> ⓘ
Gets an iterator over the raw entries of the shard descriptions tree, sorted by key.
The iterator element type is Result<(ShardIdent, CellSlice)>.
If the tree is invalid, finishes after the first invalid element, returning an error.
sourcepub fn raw_values(&self) -> WorkchainShardsTreeRawValuesIter<'_> ⓘ
pub fn raw_values(&self) -> WorkchainShardsTreeRawValuesIter<'_> ⓘ
Gets an iterator over the raw values of the shard descriptions tree, sorted by key.
The iterator element type is Result<CellSlice>.
If the tree is invalid, finishes after the first invalid element, returning an error.
Trait Implementations§
source§impl Clone for WorkchainShardHashes
impl Clone for WorkchainShardHashes
source§fn clone(&self) -> WorkchainShardHashes
fn clone(&self) -> WorkchainShardHashes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for WorkchainShardHashes
impl Debug for WorkchainShardHashes
source§impl PartialEq<WorkchainShardHashes> for WorkchainShardHashes
impl PartialEq<WorkchainShardHashes> for WorkchainShardHashes
source§fn eq(&self, other: &WorkchainShardHashes) -> bool
fn eq(&self, other: &WorkchainShardHashes) -> bool
self and other values to be equal, and is used
by ==.