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 more
sourceimpl Debug for IndividualId
impl Debug for IndividualId
sourceimpl Display for IndividualId
impl Display for IndividualId
sourceimpl From<IndividualId> for usize
impl From<IndividualId> for usize
sourcefn from(value: IndividualId) -> Self
fn from(value: IndividualId) -> Self
Converts to this type from the input type.
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
sourceimpl PartialEq<IndividualId> for IndividualId
impl PartialEq<IndividualId> for IndividualId
sourcefn eq(&self, other: &IndividualId) -> bool
fn eq(&self, other: &IndividualId) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IndividualId) -> bool
fn ne(&self, other: &IndividualId) -> bool
This method tests for !=
.
sourceimpl PartialEq<IndividualId> for tsk_id_t
impl PartialEq<IndividualId> for tsk_id_t
sourceimpl PartialEq<i32> for IndividualId
impl PartialEq<i32> for IndividualId
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>
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<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>
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 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>
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<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.
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 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