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
sourceimpl MigrationId
impl MigrationId
Trait Implementations
sourceimpl Clone for MigrationId
impl Clone for MigrationId
sourcefn clone(&self) -> MigrationId
fn clone(&self) -> MigrationId
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 MigrationId
impl Debug for MigrationId
sourceimpl Display for MigrationId
impl Display for MigrationId
sourceimpl From<MigrationId> for tsk_id_t
impl From<MigrationId> for tsk_id_t
sourcefn from(value: MigrationId) -> Self
fn from(value: MigrationId) -> Self
Converts to this type from the input type.
sourceimpl From<i32> for MigrationId
impl From<i32> for MigrationId
sourceimpl Hash for MigrationId
impl Hash for MigrationId
sourceimpl Ord for MigrationId
impl Ord for MigrationId
sourcefn cmp(&self, other: &MigrationId) -> Ordering
fn cmp(&self, other: &MigrationId) -> 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<MigrationId> for MigrationId
impl PartialEq<MigrationId> for MigrationId
sourcefn eq(&self, other: &MigrationId) -> bool
fn eq(&self, other: &MigrationId) -> bool
sourceimpl PartialEq<MigrationId> for SizeType
impl PartialEq<MigrationId> for SizeType
sourcefn eq(&self, other: &MigrationId) -> bool
fn eq(&self, other: &MigrationId) -> bool
sourceimpl PartialEq<MigrationId> for tsk_id_t
impl PartialEq<MigrationId> for tsk_id_t
sourcefn eq(&self, other: &MigrationId) -> bool
fn eq(&self, other: &MigrationId) -> bool
sourceimpl PartialOrd<MigrationId> for MigrationId
impl PartialOrd<MigrationId> for MigrationId
sourcefn partial_cmp(&self, other: &MigrationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MigrationId) -> 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<MigrationId> for SizeType
impl PartialOrd<MigrationId> for SizeType
sourcefn partial_cmp(&self, other: &MigrationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MigrationId) -> 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<MigrationId> for tsk_id_t
impl PartialOrd<MigrationId> for tsk_id_t
sourcefn partial_cmp(&self, other: &MigrationId) -> Option<Ordering>
fn partial_cmp(&self, other: &MigrationId) -> 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 MigrationId
impl PartialOrd<SizeType> for MigrationId
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 MigrationId
impl PartialOrd<i32> for MigrationId
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<MigrationId> for SizeType
impl TryFrom<MigrationId> for SizeType
type Error = TskitError
type Error = TskitError
The type returned in the event of a conversion error.
sourcefn try_from(value: MigrationId) -> Result<Self, Self::Error>
fn try_from(value: MigrationId) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl 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.
sourcefn try_from(value: MigrationId) -> Result<Self, Self::Error>
fn try_from(value: MigrationId) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for MigrationId
impl Eq for MigrationId
impl StructuralEq for MigrationId
impl StructuralPartialEq for MigrationId
Auto Trait Implementations
impl RefUnwindSafe for MigrationId
impl Send for MigrationId
impl Sync for MigrationId
impl Unpin for MigrationId
impl UnwindSafe for MigrationId
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