pub struct IntermediateShardBlockInfo<'a> {
pub header: IntermediateShardHeader<'a>,
pub own_segments: Option<OwnSegments<'a>>,
/* private fields */
}Expand description
Information about intermediate shard block
Fields§
§header: IntermediateShardHeader<'a>A block header that corresponds to an intermediate shard
own_segments: Option<OwnSegments<'a>>Segments in the corresponding block
Implementations§
Source§impl<'a> IntermediateShardBlockInfo<'a>
impl<'a> IntermediateShardBlockInfo<'a>
Sourcepub const fn num_leaf_shard_blocks(&self) -> u16
pub const fn num_leaf_shard_blocks(&self) -> u16
Number of leaf shard blocks in the corresponding intermediate shard block
Sourcepub const fn num_leaf_shard_blocks_with_segments(&self) -> u16
pub const fn num_leaf_shard_blocks_with_segments(&self) -> u16
Number of leaf shard blocks with segments in the corresponding intermediate shard block
Sourcepub fn leaf_shards_segments(
&self,
) -> impl ExactSizeIterator<Item = (u16, ShardIndex, OwnSegments<'a>)> + TrustedLen + use<'a>
pub fn leaf_shards_segments( &self, ) -> impl ExactSizeIterator<Item = (u16, ShardIndex, OwnSegments<'a>)> + TrustedLen + use<'a>
Segments of leaf shards in the corresponding intermediate shard block, with positions of their blocks among leaf shard blocks of the intermediate shard block
Trait Implementations§
Source§impl<'a> Clone for IntermediateShardBlockInfo<'a>
impl<'a> Clone for IntermediateShardBlockInfo<'a>
Auto Trait Implementations§
impl<'a> !Freeze for IntermediateShardBlockInfo<'a>
impl<'a> Forget for IntermediateShardBlockInfo<'a>
impl<'a> Move for IntermediateShardBlockInfo<'a>
impl<'a> RefUnwindSafe for IntermediateShardBlockInfo<'a>
impl<'a> Send for IntermediateShardBlockInfo<'a>where
&'a BlockHeaderPrefix: Send,
&'a BlockHeaderResult: Send,
&'a BlockHeaderConsensusInfo: Send,
&'a BlockHeaderEd25519Seal: Send,
&'a BlockHeaderBeaconChainInfo: Send,
&'a Blake3Hash: Send,
&'a [u8]: Send,
OnceLock<BlockRoot>: Send,
&'a [SegmentRoot]: Send,
impl<'a> Sync for IntermediateShardBlockInfo<'a>
impl<'a> Unpin for IntermediateShardBlockInfo<'a>where
&'a BlockHeaderPrefix: Unpin,
&'a BlockHeaderResult: Unpin,
&'a BlockHeaderConsensusInfo: Unpin,
&'a BlockHeaderEd25519Seal: Unpin,
&'a BlockHeaderBeaconChainInfo: Unpin,
&'a Blake3Hash: Unpin,
&'a [u8]: Unpin,
Align4<u32>: Unpin,
&'a [SegmentRoot]: Unpin,
impl<'a> UnsafeUnpin for IntermediateShardBlockInfo<'a>where
&'a BlockHeaderPrefix: UnsafeUnpin,
&'a BlockHeaderResult: UnsafeUnpin,
&'a BlockHeaderConsensusInfo: UnsafeUnpin,
&'a BlockHeaderEd25519Seal: UnsafeUnpin,
&'a BlockHeaderBeaconChainInfo: UnsafeUnpin,
&'a Blake3Hash: UnsafeUnpin,
&'a [u8]: UnsafeUnpin,
Align4<u32>: UnsafeUnpin,
PhantomData<BlockRoot>: UnsafeUnpin,
&'a [SegmentRoot]: UnsafeUnpin,
impl<'a> UnwindSafe for IntermediateShardBlockInfo<'a>where
&'a BlockHeaderPrefix: UnwindSafe,
&'a BlockHeaderResult: UnwindSafe,
&'a BlockHeaderConsensusInfo: UnwindSafe,
&'a BlockHeaderEd25519Seal: UnwindSafe,
&'a BlockHeaderBeaconChainInfo: UnwindSafe,
&'a Blake3Hash: UnwindSafe,
&'a [u8]: UnwindSafe,
OnceLock<BlockRoot>: UnwindSafe,
&'a [SegmentRoot]: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more