Development Documentation (main branch) - For stable release docs, see docs.rs/eidetica

TxnIterator

Trait TxnIterator 

pub trait TxnIterator {
    type Item;

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

    // 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§

type Item

Required Methods§

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

Provided Methods§

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§