pub struct PopulationId(/* private fields */);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 SizeType
impl PartialEq<PopulationId> for SizeType
Source§impl PartialEq<PopulationId> for tsk_id_t
impl PartialEq<PopulationId> for tsk_id_t
Source§impl PartialEq<SizeType> for PopulationId
impl PartialEq<SizeType> for PopulationId
Source§impl PartialEq<i32> for PopulationId
impl PartialEq<i32> for PopulationId
Source§impl PartialEq for PopulationId
impl PartialEq for PopulationId
Source§impl PartialOrd<PopulationId> for SizeType
impl PartialOrd<PopulationId> for SizeType
Source§impl PartialOrd<PopulationId> for tsk_id_t
impl PartialOrd<PopulationId> for tsk_id_t
Source§impl PartialOrd<SizeType> for PopulationId
impl PartialOrd<SizeType> for PopulationId
Source§impl PartialOrd<i32> for PopulationId
impl PartialOrd<i32> for PopulationId
Source§impl PartialOrd for PopulationId
impl PartialOrd for PopulationId
Source§impl TryFrom<PopulationId> for SizeType
impl TryFrom<PopulationId> for SizeType
Source§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
Source§type Error = TskitError
type Error = TskitError
The type returned in the event of a conversion error.
impl Copy for PopulationId
impl Eq for PopulationId
impl StructuralPartialEq for PopulationId
Auto Trait Implementations§
impl Freeze for PopulationId
impl RefUnwindSafe for PopulationId
impl Send for PopulationId
impl Sync for PopulationId
impl Unpin for PopulationId
impl UnwindSafe for PopulationId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more