Enum necsim_core::lineage::TieBreaker
source · #[repr(i8)]pub enum TieBreaker {
PreferImmigrant = -1,
PreferLocal = 1,
}
Variants§
Trait Implementations§
source§impl Clone for TieBreaker
impl Clone for TieBreaker
source§fn clone(&self) -> TieBreaker
fn clone(&self) -> TieBreaker
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 TieBreaker
impl Debug for TieBreaker
source§impl<'de> Deserialize<'de> for TieBreaker
impl<'de> Deserialize<'de> for TieBreaker
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 Ord for TieBreaker
impl Ord for TieBreaker
source§fn cmp(&self, other: &TieBreaker) -> Ordering
fn cmp(&self, other: &TieBreaker) -> 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 TieBreaker
impl PartialEq for TieBreaker
source§fn eq(&self, other: &TieBreaker) -> bool
fn eq(&self, other: &TieBreaker) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TieBreaker
impl PartialOrd for TieBreaker
source§fn partial_cmp(&self, other: &TieBreaker) -> Option<Ordering>
fn partial_cmp(&self, other: &TieBreaker) -> 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 TieBreaker
impl Serialize for TieBreaker
impl Copy for TieBreaker
impl Eq for TieBreaker
impl StructuralPartialEq for TieBreaker
Auto Trait Implementations§
impl Freeze for TieBreaker
impl RefUnwindSafe for TieBreaker
impl Send for TieBreaker
impl Sync for TieBreaker
impl Unpin for TieBreaker
impl UnwindSafe for TieBreaker
Blanket Implementations§
source§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>
source§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