pub struct IntermediateShardBlockInfo<'a> {
pub header: IntermediateShardHeader<'a>,
pub segments_proof: Option<&'a [u8; 32]>,
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
segments_proof: Option<&'a [u8; 32]>Segments proof if either own or child segments are present
own_segments: Option<OwnSegments<'a>>Segments in the corresponding block
Implementations§
Source§impl<'a> IntermediateShardBlockInfo<'a>
impl<'a> IntermediateShardBlockInfo<'a>
Sourcepub fn leaf_shards_segments(
&self,
) -> impl ExactSizeIterator<Item = (ShardIndex, OwnSegments<'a>)> + TrustedLen + 'a
pub fn leaf_shards_segments( &self, ) -> impl ExactSizeIterator<Item = (ShardIndex, OwnSegments<'a>)> + TrustedLen + 'a
Segments of leaf shards in the corresponding intermediate shard block
Trait Implementations§
Source§impl<'a> Clone for IntermediateShardBlockInfo<'a>
impl<'a> Clone for IntermediateShardBlockInfo<'a>
Source§fn clone(&self) -> IntermediateShardBlockInfo<'a>
fn clone(&self) -> IntermediateShardBlockInfo<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for IntermediateShardBlockInfo<'a>
impl<'a> !RefUnwindSafe for IntermediateShardBlockInfo<'a>
impl<'a> Send for IntermediateShardBlockInfo<'a>
impl<'a> Sync for IntermediateShardBlockInfo<'a>
impl<'a> Unpin for IntermediateShardBlockInfo<'a>
impl<'a> !UnwindSafe for IntermediateShardBlockInfo<'a>
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