Enum necsim_core::lineage::LineageInteraction
source · pub enum LineageInteraction {
None,
Maybe,
Coalescence(GlobalLineageReference),
}
Variants§
Implementations§
source§impl LineageInteraction
impl LineageInteraction
pub const fn is_coalescence(&self) -> bool
pub const fn parent(&self) -> Option<GlobalLineageReference>
Trait Implementations§
source§impl Clone for LineageInteraction
impl Clone for LineageInteraction
source§fn clone(&self) -> LineageInteraction
fn clone(&self) -> LineageInteraction
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 LineageInteraction
impl Debug for LineageInteraction
source§impl<'de> Deserialize<'de> for LineageInteraction
impl<'de> Deserialize<'de> for LineageInteraction
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 From<Option<GlobalLineageReference>> for LineageInteraction
impl From<Option<GlobalLineageReference>> for LineageInteraction
source§fn from(optional_coalescence: Option<GlobalLineageReference>) -> Self
fn from(optional_coalescence: Option<GlobalLineageReference>) -> Self
Converts to this type from the input type.
source§impl Hash for LineageInteraction
impl Hash for LineageInteraction
source§impl Ord for LineageInteraction
impl Ord for LineageInteraction
source§fn cmp(&self, other: &LineageInteraction) -> Ordering
fn cmp(&self, other: &LineageInteraction) -> 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 LineageInteraction
impl PartialEq for LineageInteraction
source§fn eq(&self, other: &LineageInteraction) -> bool
fn eq(&self, other: &LineageInteraction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LineageInteraction
impl PartialOrd for LineageInteraction
source§fn partial_cmp(&self, other: &LineageInteraction) -> Option<Ordering>
fn partial_cmp(&self, other: &LineageInteraction) -> 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 LineageInteraction
impl Serialize for LineageInteraction
impl Eq for LineageInteraction
impl StructuralPartialEq for LineageInteraction
Auto Trait Implementations§
impl Freeze for LineageInteraction
impl RefUnwindSafe for LineageInteraction
impl Send for LineageInteraction
impl Sync for LineageInteraction
impl Unpin for LineageInteraction
impl UnwindSafe for LineageInteraction
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> 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