1 2 3 4 5 6 7 8 9 10
use crate::tsk_id_t; pub struct TableIterator<T> { pub(crate) table: T, pub(crate) pos: tsk_id_t, } pub(crate) fn make_table_iterator<TABLE>(table: TABLE) -> TableIterator<TABLE> { TableIterator { table, pos: 0 } }