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
sourceimpl MutationId
impl MutationId
Trait Implementations
sourceimpl Clone for MutationId
impl Clone for MutationId
sourcefn clone(&self) -> MutationId
fn clone(&self) -> MutationId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MutationId
impl Debug for MutationId
sourceimpl Display for MutationId
impl Display for MutationId
sourceimpl From<MutationId> for tsk_id_t
impl From<MutationId> for tsk_id_t
sourcefn from(value: MutationId) -> Self
fn from(value: MutationId) -> Self
Converts to this type from the input type.
sourceimpl From<i32> for MutationId
impl From<i32> for MutationId
sourceimpl Hash for MutationId
impl Hash for MutationId
sourceimpl Ord for MutationId
impl Ord for MutationId
sourcefn cmp(&self, other: &MutationId) -> Ordering
fn cmp(&self, other: &MutationId) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MutationId> for MutationId
impl PartialEq<MutationId> for MutationId
sourcefn eq(&self, other: &MutationId) -> bool
fn eq(&self, other: &MutationId) -> bool
sourceimpl PartialEq<MutationId> for SizeType
impl PartialEq<MutationId> for SizeType
sourcefn eq(&self, other: &MutationId) -> bool
fn eq(&self, other: &MutationId) -> bool
sourceimpl PartialEq<MutationId> for tsk_id_t
impl PartialEq<MutationId> for tsk_id_t
sourcefn eq(&self, other: &MutationId) -> bool
fn eq(&self, other: &MutationId) -> bool
sourceimpl PartialOrd<MutationId> for MutationId
impl PartialOrd<MutationId> for MutationId
sourcefn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl PartialOrd<MutationId> for SizeType
impl PartialOrd<MutationId> for SizeType
sourcefn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl PartialOrd<MutationId> for tsk_id_t
impl PartialOrd<MutationId> for tsk_id_t
sourcefn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MutationId) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl PartialOrd<SizeType> for MutationId
impl PartialOrd<SizeType> for MutationId
sourcefn partial_cmp(&self, other: &SizeType) -> Option<Ordering>
fn partial_cmp(&self, other: &SizeType) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl PartialOrd<i32> for MutationId
impl PartialOrd<i32> for MutationId
sourcefn partial_cmp(&self, other: &tsk_id_t) -> Option<Ordering>
fn partial_cmp(&self, other: &tsk_id_t) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl 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.
sourcefn try_from(value: MutationId) -> Result<Self, Self::Error>
fn try_from(value: MutationId) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl 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.
sourcefn try_from(value: MutationId) -> Result<Self, Self::Error>
fn try_from(value: MutationId) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for MutationId
impl Eq for MutationId
impl StructuralEq for MutationId
impl StructuralPartialEq for MutationId
Auto Trait Implementations
impl RefUnwindSafe for MutationId
impl Send for MutationId
impl Sync for MutationId
impl Unpin for MutationId
impl UnwindSafe for MutationId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more