Struct combine::parser::repeat::Iter[][src]

pub struct Iter<'a, P: Parser, S, M> where
    P::Input: 'a, 
{ /* fields omitted */ }

Implementations

impl<'a, P: Parser, S, M> Iter<'a, P, S, M> where
    S: BorrowMut<P::PartialState>, 
[src]

pub fn new(
    parser: P,
    mode: M,
    input: &'a mut P::Input,
    partial_state: S
) -> Self
[src]

pub fn into_result<O>(self, value: O) -> ParseResult<O, P::Input>[src]

Converts the iterator to a ParseResult, returning Ok if the parsing so far has be done without any errors which consumed data.

Trait Implementations

impl<'a, P: Parser, S, M> Iterator for Iter<'a, P, S, M> where
    S: BorrowMut<P::PartialState>,
    M: ParseMode, 
[src]

type Item = P::Output

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, P, S, M> RefUnwindSafe for Iter<'a, P, S, M> where
    M: RefUnwindSafe,
    P: RefUnwindSafe,
    S: RefUnwindSafe,
    <<P as Parser>::Input as StreamOnce>::Error: RefUnwindSafe,
    <P as Parser>::Input: RefUnwindSafe

impl<'a, P, S, M> Send for Iter<'a, P, S, M> where
    M: Send,
    P: Send,
    S: Send,
    <<P as Parser>::Input as StreamOnce>::Error: Send,
    <P as Parser>::Input: Send

impl<'a, P, S, M> Sync for Iter<'a, P, S, M> where
    M: Sync,
    P: Sync,
    S: Sync,
    <<P as Parser>::Input as StreamOnce>::Error: Sync,
    <P as Parser>::Input: Sync

impl<'a, P, S, M> Unpin for Iter<'a, P, S, M> where
    M: Unpin,
    P: Unpin,
    S: Unpin,
    <<P as Parser>::Input as StreamOnce>::Error: Unpin

impl<'a, P, S, M> !UnwindSafe for Iter<'a, P, S, M>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.