Struct xpather::factory::Stepper[][src]

pub struct Stepper<S: Iterator<Item = ExprToken>>(_);

Implementations

impl<S: Iterator<Item = ExprToken>> Stepper<S>[src]

pub fn new(steps: Peekable<S>) -> Self[src]

pub fn has_more_tokens(&mut self) -> bool[src]

pub fn is_next_token<T: Into<ExprToken>>(&mut self, token: T) -> bool[src]

pub fn is_next_token_func<F: FnOnce(&S::Item) -> bool>(
    &mut self,
    token: F
) -> bool
[src]

pub fn consume_if_next_token_is<T: Into<ExprToken> + Copy>(
    &mut self,
    token: T
) -> Result<bool>
[src]

pub fn consume<T: Into<ExprToken>>(&mut self, token: T) -> Result<()>[src]

pub fn consume_func<F: FnOnce(&S::Item) -> bool>(
    &mut self,
    token: F
) -> Result<()>
[src]

pub fn peek(&mut self) -> Option<&S::Item>[src]

Trait Implementations

impl<S: Iterator<Item = ExprToken>> Iterator for Stepper<S>[src]

type Item = S::Item

The type of the elements being iterated over.

Auto Trait Implementations

impl<S> RefUnwindSafe for Stepper<S> where
    S: RefUnwindSafe

impl<S> Send for Stepper<S> where
    S: Send

impl<S> Sync for Stepper<S> where
    S: Sync

impl<S> Unpin for Stepper<S> where
    S: Unpin

impl<S> UnwindSafe for Stepper<S> where
    S: UnwindSafe

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.