Struct tskit::ProvenanceId
source · [−]#[repr(transparent)]pub struct ProvenanceId(_);
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 more
sourceimpl Debug for ProvenanceId
impl Debug for ProvenanceId
sourceimpl Display for ProvenanceId
impl Display for ProvenanceId
sourceimpl From<ProvenanceId> for usize
impl From<ProvenanceId> for usize
sourcefn from(value: ProvenanceId) -> Self
fn from(value: ProvenanceId) -> Self
Converts to this type from the input type.
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
sourceimpl PartialEq<ProvenanceId> for ProvenanceId
impl PartialEq<ProvenanceId> for ProvenanceId
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ProvenanceId) -> bool
fn ne(&self, other: &ProvenanceId) -> bool
This method tests for !=
.
sourceimpl PartialEq<ProvenanceId> for tsk_id_t
impl PartialEq<ProvenanceId> for tsk_id_t
sourceimpl PartialEq<i32> for ProvenanceId
impl PartialEq<i32> for ProvenanceId
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>
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<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>
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 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>
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<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.
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 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