tskit 0.2.0

rust interface to tskit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::tsk_id_t;

pub struct TableIterator<T> {
    pub(crate) table: T,
    pub(crate) pos: tsk_id_t,
    pub(crate) decode_metadata: bool,
}

pub(crate) fn make_table_iterator<TABLE>(
    table: TABLE,
    decode_metadata: bool,
) -> TableIterator<TABLE> {
    TableIterator {
        table,
        pos: 0,
        decode_metadata,
    }
}