pub struct MigrationTable<'a> { /* private fields */ }
Expand description

An immutable view of a migration table.

These are not created directly. Instead, use TableCollection::migrations to get a reference to an existing node table;

Implementations

Return the number of rows

Return the left coordinate for a given row.

Errors

Return the right coordinate for a given row.

Errors

Return the node for a given row.

Errors

Return the source population for a given row.

Errors

Return the destination population for a given row.

Errors

Return the time of the migration event for a given row.

Errors

Return the metadata for a given row.

Errors

Return an iterator over rows of the table. The value of the iterator is MigrationTableRow.

Return row r of the table.

Parameters
  • r: the row id.
Errors

TskitError::IndexError if r is out of range.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Drops the content pointed by this pointer and frees it. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.