Trait IntoParserIter

Source
pub trait IntoParserIter: Sized {
    type Item;
    type Error;

    // Required method
    fn parse_iter<R: Read>(self, reader: R) -> ParserIter<R, Self>
       where ParserIter<R, Self>: Iterator<Item = Result<Self::Item, Self::Error>>;
}

Required Associated Types§

Required Methods§

Source

fn parse_iter<R: Read>(self, reader: R) -> ParserIter<R, Self>
where ParserIter<R, Self>: Iterator<Item = Result<Self::Item, Self::Error>>,

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.

Implementations on Foreign Types§

Source§

impl<T> IntoParserIter for &mut Option<T>
where T: Parser<Next = Option<T>>,

Source§

type Item = <T as Parser>::Item

Source§

type Error = <T as Parser>::Error

Source§

fn parse_iter<R: Read>(self, reader: R) -> ParserIter<R, Self>

Source§

impl<T> IntoParserIter for Option<T>
where T: Parser<Next = Option<T>>,

Source§

type Item = <T as Parser>::Item

Source§

type Error = <T as Parser>::Error

Source§

fn parse_iter<R: Read>(self, reader: R) -> ParserIter<R, Self>

Implementors§