Struct tskit::provenance::ProvenanceTable [−][src]
pub struct ProvenanceTable<'a> { /* fields omitted */ }
Expand description
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
Return the number of rows
pub fn timestamp<P: Into<ProvenanceId> + Copy>(
&'a self,
row: P
) -> Result<String, TskitError>
pub fn timestamp<P: Into<ProvenanceId> + Copy>(
&'a self,
row: P
) -> Result<String, TskitError>
pub fn row<P: Into<ProvenanceId> + Copy>(
&'a self,
row: P
) -> Result<ProvenanceTableRow, TskitError>
pub fn row<P: Into<ProvenanceId> + Copy>(
&'a self,
row: P
) -> Result<ProvenanceTableRow, TskitError>
Return an iterator over rows of the table.
The value of the iterator is ProvenanceTableRow
.