Struct ParserIterator

pub struct ParserIterator<I, E, F> { /* private fields */ }

Main structure associated to the [iterator] function.

Implementations

impl<I: Clone, E, F> ParserIterator<I, E, F>

fn finish(self) -> IResult<I, (), E>

Returns the remaining input if parsing was successful, or the error if we encountered an error.

Trait Implementations

impl<Input, Output, Error, F> Iterator for ParserIterator<Input, Error, F> where F: Parser<Input, Output = Output, Error = Error>, Input: Clone,

type Item = Output;
fn next(&mut self) -> Option<Self::Item>

Auto Trait Implementations

impl<I, E, F> Freeze for ParserIterator<I, E, F> where F: Freeze, I: Freeze, Option<State<E>>: Freeze,

impl<I, E, F> RefUnwindSafe for ParserIterator<I, E, F> where F: RefUnwindSafe, I: RefUnwindSafe, Option<State<E>>: RefUnwindSafe,

impl<I, E, F> Send for ParserIterator<I, E, F> where F: Send, I: Send, Option<State<E>>: Send,

impl<I, E, F> Sync for ParserIterator<I, E, F> where F: Sync, I: Sync, Option<State<E>>: Sync,

impl<I, E, F> Unpin for ParserIterator<I, E, F> where F: Unpin, I: Unpin, Option<State<E>>: Unpin,

impl<I, E, F> UnsafeUnpin for ParserIterator<I, E, F> where F: UnsafeUnpin, I: UnsafeUnpin, Option<State<E>>: UnsafeUnpin,

impl<I, E, F> UnwindSafe for ParserIterator<I, E, F> where F: UnwindSafe, I: UnwindSafe, Option<State<E>>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for ParserIterator<I, E, F> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for ParserIterator<I, E, F> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ParserIterator<I, E, F> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ParserIterator<I, E, F> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for ParserIterator<I, E, F>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for ParserIterator<I, E, F> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ParserIterator<I, E, F> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ParserIterator<I, E, F> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>