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