Struct tskit::MutationId
source · #[repr(transparent)]pub struct MutationId(_);
Expand description
A mutation ID
This is an integer referring to a row of an MutationTable
.
The features for this type follow the same pattern as for NodeId
Implementations§
source§impl MutationId
impl MutationId
Trait Implementations§
source§impl Clone for MutationId
impl Clone for MutationId
source§fn clone(&self) -> MutationId
fn clone(&self) -> MutationId
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 MutationId
impl Debug for MutationId
source§impl Default for MutationId
impl Default for MutationId
source§impl Display for MutationId
impl Display for MutationId
source§impl From<MutationId> for tsk_id_t
impl From<MutationId> for tsk_id_t
source§fn from(value: MutationId) -> Self
fn from(value: MutationId) -> Self
Converts to this type from the input type.
source§impl From<i32> for MutationId
impl From<i32> for MutationId
source§impl Hash for MutationId
impl Hash for MutationId
source§impl Ord for MutationId
impl Ord for MutationId
source§fn cmp(&self, other: &MutationId) -> Ordering
fn cmp(&self, other: &MutationId) -> 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<MutationId> for MutationId
impl PartialEq<MutationId> for MutationId
source§fn eq(&self, other: &MutationId) -> bool
fn eq(&self, other: &MutationId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<MutationId> for SizeType
impl PartialEq<MutationId> for SizeType
source§fn eq(&self, other: &MutationId) -> bool
fn eq(&self, other: &MutationId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<MutationId> for tsk_id_t
impl PartialEq<MutationId> for tsk_id_t
source§fn eq(&self, other: &MutationId) -> bool
fn eq(&self, other: &MutationId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<SizeType> for MutationId
impl PartialEq<SizeType> for MutationId
source§impl PartialEq<i32> for MutationId
impl PartialEq<i32> for MutationId
source§impl PartialOrd<MutationId> for MutationId
impl PartialOrd<MutationId> for MutationId
source§fn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MutationId) -> 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 PartialOrd<MutationId> for SizeType
impl PartialOrd<MutationId> for SizeType
source§fn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MutationId) -> 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 PartialOrd<MutationId> for tsk_id_t
impl PartialOrd<MutationId> for tsk_id_t
source§fn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MutationId) -> 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 PartialOrd<SizeType> for MutationId
impl PartialOrd<SizeType> for MutationId
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 PartialOrd<i32> for MutationId
impl PartialOrd<i32> for MutationId
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 TryFrom<MutationId> for SizeType
impl TryFrom<MutationId> for SizeType
§type Error = TskitError
type Error = TskitError
The type returned in the event of a conversion error.
source§impl TryFrom<MutationId> for usize
impl TryFrom<MutationId> for usize
§type Error = TskitError
type Error = TskitError
The type returned in the event of a conversion error.