Struct tskit::provenance::ProvenanceTable [−][src]
pub struct ProvenanceTable<'a> { /* fields omitted */ }
An immutable view of a provenance table.
These are not created directly.
Instead, use Provenance::provenances
to get a reference to an existing node table;
Notes
- The type is enabled by the
"provenance"
feature.
Implementations
impl<'a> ProvenanceTable<'a>
[src]
impl<'a> ProvenanceTable<'a>
[src]pub fn num_rows(&'a self) -> tsk_size_t
[src]
Return the number of rows
pub fn timestamp(&'a self, row: tsk_id_t) -> Result<String, TskitError>
[src]
pub fn record(&'a self, row: tsk_id_t) -> Result<String, TskitError>
[src]
pub fn row(&'a self, row: tsk_id_t) -> Result<ProvenanceTableRow, TskitError>
[src]
pub fn iter(&self) -> TableIterator<&'_ ProvenanceTable<'_>>
[src]
Return an iterator over rows of the table.
The value of the iterator is ProvenanceTableRow
.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ProvenanceTable<'a>
impl<'a> RefUnwindSafe for ProvenanceTable<'a>
impl<'a> !Send for ProvenanceTable<'a>
impl<'a> !Send for ProvenanceTable<'a>
impl<'a> !Sync for ProvenanceTable<'a>
impl<'a> !Sync for ProvenanceTable<'a>
impl<'a> Unpin for ProvenanceTable<'a>
impl<'a> Unpin for ProvenanceTable<'a>
impl<'a> UnwindSafe for ProvenanceTable<'a>
impl<'a> UnwindSafe for ProvenanceTable<'a>