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>
Source§fn clone(&self) -> ShardsPresent<NUM_SHARDS>
fn clone(&self) -> ShardsPresent<NUM_SHARDS>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<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>
Source§fn default() -> ShardsPresent<NUM_SHARDS>
fn default() -> ShardsPresent<NUM_SHARDS>
Returns the “default value” for a type. Read more
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> 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