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