Skip to main content

IterableReader

Trait IterableReader 

Source
pub trait IterableReader<'a, T> {
    type Error: Error;

    // Required method
    fn iter(&'a self) -> impl Iterator<Item = Result<T, Self::Error>>;

    // Provided method
    fn iter_ok(&'a self) -> impl Iterator<Item = T> { ... }
}

Required Associated Types§

Required Methods§

Source

fn iter(&'a self) -> impl Iterator<Item = Result<T, Self::Error>>

Provided Methods§

Source

fn iter_ok(&'a self) -> impl Iterator<Item = T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, R, T> IterableReader<'a, T> for R
where R: IndexedReader<T> + Reader<T>,

Source§

type Error = <R as Reader<T>>::Error