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