Struct tskit::IndividualId
source · #[repr(transparent)]pub struct IndividualId(_);
Expand description
An individual ID
This is an integer referring to a row of an IndividualTable
.
The features for this type follow the same pattern as for NodeId
Implementations
sourceimpl IndividualId
impl IndividualId
Trait Implementations
sourceimpl Clone for IndividualId
impl Clone for IndividualId
sourcefn clone(&self) -> IndividualId
fn clone(&self) -> IndividualId
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 IndividualId
impl Debug for IndividualId
sourceimpl Display for IndividualId
impl Display for IndividualId
sourceimpl From<IndividualId> for tsk_id_t
impl From<IndividualId> for tsk_id_t
sourcefn from(value: IndividualId) -> Self
fn from(value: IndividualId) -> Self
Converts to this type from the input type.
sourceimpl From<i32> for IndividualId
impl From<i32> for IndividualId
sourceimpl Hash for IndividualId
impl Hash for IndividualId
sourceimpl Ord for IndividualId
impl Ord for IndividualId
sourcefn cmp(&self, other: &IndividualId) -> Ordering
fn cmp(&self, other: &IndividualId) -> 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<IndividualId> for IndividualId
impl PartialEq<IndividualId> for IndividualId
sourcefn eq(&self, other: &IndividualId) -> bool
fn eq(&self, other: &IndividualId) -> bool
sourceimpl PartialEq<IndividualId> for tsk_id_t
impl PartialEq<IndividualId> for tsk_id_t
sourcefn eq(&self, other: &IndividualId) -> bool
fn eq(&self, other: &IndividualId) -> bool
sourceimpl PartialOrd<IndividualId> for IndividualId
impl PartialOrd<IndividualId> for IndividualId
sourcefn partial_cmp(&self, other: &IndividualId) -> Option<Ordering>
fn partial_cmp(&self, other: &IndividualId) -> 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<IndividualId> for tsk_id_t
impl PartialOrd<IndividualId> for tsk_id_t
sourcefn partial_cmp(&self, other: &IndividualId) -> Option<Ordering>
fn partial_cmp(&self, other: &IndividualId) -> 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 IndividualId
impl PartialOrd<i32> for IndividualId
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<IndividualId> for SizeType
impl TryFrom<IndividualId> for SizeType
type Error = TskitError
type Error = TskitError
The type returned in the event of a conversion error.
sourcefn try_from(value: IndividualId) -> Result<Self, Self::Error>
fn try_from(value: IndividualId) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl TryFrom<IndividualId> for usize
impl TryFrom<IndividualId> for usize
type Error = TskitError
type Error = TskitError
The type returned in the event of a conversion error.
sourcefn try_from(value: IndividualId) -> Result<Self, Self::Error>
fn try_from(value: IndividualId) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for IndividualId
impl Eq for IndividualId
impl StructuralEq for IndividualId
impl StructuralPartialEq for IndividualId
Auto Trait Implementations
impl RefUnwindSafe for IndividualId
impl Send for IndividualId
impl Sync for IndividualId
impl Unpin for IndividualId
impl UnwindSafe for IndividualId
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