pub struct ShardsPresent<const NUM_SHARDS: usize> {
pub source: ShardsBitmap<NUM_SHARDS>,
pub parity: ShardsBitmap<NUM_SHARDS>,
}Expand description
Which source and parity shards are present
Fields§
§source: ShardsBitmap<NUM_SHARDS>Which source shards are present
parity: ShardsBitmap<NUM_SHARDS>Which parity shards are present
Implementations§
Trait Implementations§
Source§impl<const NUM_SHARDS: usize> Clone for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> Clone for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> Copy for ShardsPresent<NUM_SHARDS>
Source§impl<const NUM_SHARDS: usize> Debug for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> Debug for ShardsPresent<NUM_SHARDS>
Source§impl<const NUM_SHARDS: usize> Default for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> Default for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> Eq for ShardsPresent<NUM_SHARDS>
Source§impl<const NUM_SHARDS: usize> PartialEq for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> PartialEq for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> StructuralPartialEq for ShardsPresent<NUM_SHARDS>
Auto Trait Implementations§
impl<const NUM_SHARDS: usize> Forget for ShardsPresent<NUM_SHARDS>
impl<const NUM_SHARDS: usize> Freeze for ShardsPresent<NUM_SHARDS>where
ShardsBitmap<NUM_SHARDS>: Freeze,
impl<const NUM_SHARDS: usize> RefUnwindSafe for ShardsPresent<NUM_SHARDS>where
ShardsBitmap<NUM_SHARDS>: RefUnwindSafe,
impl<const NUM_SHARDS: usize> Send for ShardsPresent<NUM_SHARDS>where
ShardsBitmap<NUM_SHARDS>: Send,
impl<const NUM_SHARDS: usize> Sync for ShardsPresent<NUM_SHARDS>where
ShardsBitmap<NUM_SHARDS>: Sync,
impl<const NUM_SHARDS: usize> Unpin for ShardsPresent<NUM_SHARDS>where
ShardsBitmap<NUM_SHARDS>: Unpin,
impl<const NUM_SHARDS: usize> UnsafeUnpin for ShardsPresent<NUM_SHARDS>where
ShardsBitmap<NUM_SHARDS>: UnsafeUnpin,
impl<const NUM_SHARDS: usize> UnwindSafe for ShardsPresent<NUM_SHARDS>where
ShardsBitmap<NUM_SHARDS>: 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