Struct necsim_partitioning_core::partition::PartitionSize
source · pub struct PartitionSize(pub NonZeroU32);
Tuple Fields§
§0: NonZeroU32
Implementations§
source§impl PartitionSize
impl PartitionSize
pub const MONOLITHIC: Self = _
pub const fn get(self) -> u32
pub const fn is_monolithic(self) -> bool
pub fn partitions(self) -> impl ExactSizeIterator<Item = Partition>
Trait Implementations§
source§impl Clone for PartitionSize
impl Clone for PartitionSize
source§fn clone(&self) -> PartitionSize
fn clone(&self) -> PartitionSize
Returns a copy 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 moresource§impl Debug for PartitionSize
impl Debug for PartitionSize
source§impl<'de> Deserialize<'de> for PartitionSize
impl<'de> Deserialize<'de> for PartitionSize
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for PartitionSize
impl Display for PartitionSize
source§impl Hash for PartitionSize
impl Hash for PartitionSize
source§impl Ord for PartitionSize
impl Ord for PartitionSize
source§fn cmp(&self, other: &PartitionSize) -> Ordering
fn cmp(&self, other: &PartitionSize) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PartitionSize
impl PartialEq for PartitionSize
source§fn eq(&self, other: &PartitionSize) -> bool
fn eq(&self, other: &PartitionSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PartitionSize
impl PartialOrd for PartitionSize
source§fn partial_cmp(&self, other: &PartitionSize) -> Option<Ordering>
fn partial_cmp(&self, other: &PartitionSize) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for PartitionSize
impl Serialize for PartitionSize
impl Copy for PartitionSize
impl Eq for PartitionSize
impl StructuralPartialEq for PartitionSize
Auto Trait Implementations§
impl Freeze for PartitionSize
impl RefUnwindSafe for PartitionSize
impl Send for PartitionSize
impl Sync for PartitionSize
impl Unpin for PartitionSize
impl UnwindSafe for PartitionSize
Blanket Implementations§
§impl<T> Backup for Twhere
T: Clone,
impl<T> Backup for Twhere
T: Clone,
default unsafe fn backup_unchecked(&self) -> T
default unsafe fn __contracts_impl_backup_unchecked(&self) -> T
fn backup(&self) -> BackedUp<Self>
§impl<T> Backup for Twhere
T: Copy,
impl<T> Backup for Twhere
T: Copy,
unsafe fn __contracts_impl_backup_unchecked(&self) -> T
unsafe fn backup_unchecked(&self) -> Self
fn backup(&self) -> BackedUp<Self>
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
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more