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 for WorkchainShardHashes
impl PartialEq for WorkchainShardHashes
impl Eq for WorkchainShardHashes
impl StructuralPartialEq for WorkchainShardHashes
Auto Trait Implementations§
impl Freeze for WorkchainShardHashes
impl !RefUnwindSafe for WorkchainShardHashes
impl Send for WorkchainShardHashes
impl Sync for WorkchainShardHashes
impl Unpin for WorkchainShardHashes
impl !UnwindSafe for WorkchainShardHashes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
self to key and returns true if they are equal.