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 more
sourceimpl Debug for MutationId
impl Debug for MutationId
sourceimpl Display for MutationId
impl Display for MutationId
sourceimpl From<MutationId> for usize
impl From<MutationId> for usize
sourcefn from(value: MutationId) -> Self
fn from(value: MutationId) -> Self
Converts to this type from the input type.
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
sourceimpl PartialEq<MutationId> for MutationId
impl PartialEq<MutationId> for MutationId
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &MutationId) -> bool
fn ne(&self, other: &MutationId) -> bool
This method tests for !=
.
sourceimpl PartialEq<MutationId> for tsk_id_t
impl PartialEq<MutationId> for tsk_id_t
sourceimpl PartialEq<MutationId> for SizeType
impl PartialEq<MutationId> for SizeType
sourceimpl PartialEq<SizeType> for MutationId
impl PartialEq<SizeType> for MutationId
sourceimpl PartialEq<i32> for MutationId
impl PartialEq<i32> for MutationId
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
sourceimpl 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.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more