Trait yrs::iter::TxnIterator

source ·
pub trait TxnIterator {
    type Item;

    // Required method
    fn next<T: ReadTxn>(&mut self, txn: &T) -> Option<Self::Item>;

    // Provided method
    fn collect<T, B>(&mut self, txn: &T) -> B
       where T: ReadTxn,
             B: Default + Extend<Self::Item> { ... }
}
Expand description

Iterator equivalent that can be supplied with transaction when iteration step may need it.

Required Associated Types§

Required Methods§

source

fn next<T: ReadTxn>(&mut self, txn: &T) -> Option<Self::Item>

Provided Methods§

source

fn collect<T, B>(&mut self, txn: &T) -> B
where T: ReadTxn, B: Default + Extend<Self::Item>,

Object Safety§

This trait is not object safe.

Implementors§