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
sourceimpl ProvenanceId
impl ProvenanceId
Trait Implementations
sourceimpl Clone for ProvenanceId
impl Clone for ProvenanceId
sourcefn clone(&self) -> ProvenanceId
fn clone(&self) -> ProvenanceId
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 ProvenanceId
impl Debug for ProvenanceId
sourceimpl Display for ProvenanceId
impl Display for ProvenanceId
sourceimpl From<ProvenanceId> for tsk_id_t
impl From<ProvenanceId> for tsk_id_t
sourcefn from(value: ProvenanceId) -> Self
fn from(value: ProvenanceId) -> Self
Converts to this type from the input type.
sourceimpl From<i32> for ProvenanceId
impl From<i32> for ProvenanceId
sourceimpl Hash for ProvenanceId
impl Hash for ProvenanceId
sourceimpl Ord for ProvenanceId
impl Ord for ProvenanceId
sourcefn cmp(&self, other: &ProvenanceId) -> Ordering
fn cmp(&self, other: &ProvenanceId) -> 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<ProvenanceId> for ProvenanceId
impl PartialEq<ProvenanceId> for ProvenanceId
sourcefn eq(&self, other: &ProvenanceId) -> bool
fn eq(&self, other: &ProvenanceId) -> bool
sourceimpl PartialEq<ProvenanceId> for tsk_id_t
impl PartialEq<ProvenanceId> for tsk_id_t
sourcefn eq(&self, other: &ProvenanceId) -> bool
fn eq(&self, other: &ProvenanceId) -> bool
sourceimpl PartialOrd<ProvenanceId> for ProvenanceId
impl PartialOrd<ProvenanceId> for ProvenanceId
sourcefn partial_cmp(&self, other: &ProvenanceId) -> Option<Ordering>
fn partial_cmp(&self, other: &ProvenanceId) -> 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<ProvenanceId> for tsk_id_t
impl PartialOrd<ProvenanceId> for tsk_id_t
sourcefn partial_cmp(&self, other: &ProvenanceId) -> Option<Ordering>
fn partial_cmp(&self, other: &ProvenanceId) -> 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 ProvenanceId
impl PartialOrd<i32> for ProvenanceId
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<ProvenanceId> for SizeType
impl TryFrom<ProvenanceId> for SizeType
type Error = TskitError
type Error = TskitError
The type returned in the event of a conversion error.
sourcefn try_from(value: ProvenanceId) -> Result<Self, Self::Error>
fn try_from(value: ProvenanceId) -> Result<Self, Self::Error>
Performs the conversion.
sourceimpl 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.
sourcefn try_from(value: ProvenanceId) -> Result<Self, Self::Error>
fn try_from(value: ProvenanceId) -> Result<Self, Self::Error>
Performs the conversion.
impl Copy for ProvenanceId
impl Eq for ProvenanceId
impl StructuralEq for ProvenanceId
impl StructuralPartialEq for ProvenanceId
Auto Trait Implementations
impl RefUnwindSafe for ProvenanceId
impl Send for ProvenanceId
impl Sync for ProvenanceId
impl Unpin for ProvenanceId
impl UnwindSafe for ProvenanceId
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