Struct mm0b_parser::ProofIter[][src]

pub struct ProofIter<'a> {
    pub pos: usize,
    pub ends_at: usize,
    // some fields omitted
}

An iterator over a proof command stream.

Fields

pos: usize

The index of the current proof command in the file.

ends_at: usize

The position at which the proof stream ends. This is preferred to carrying a truncated slice to make the behavior copascetic, and to give users easier access to the context should they want it.

Implementations

impl<'a> ProofIter<'a>[src]

#[must_use]
pub fn is_null(&self) -> bool
[src]

True if this iterator is “null”, meaning that it has zero commands. This is not the same as being empty, which happens when there is one command which is the terminating CMD_END command.

impl<'a> ProofIter<'a>[src]

#[must_use]
pub fn peek(&self) -> Option<Result<ProofCmd, ParseError>>
[src]

Peek the next element.

Trait Implementations

impl<'a> Clone for ProofIter<'a>[src]

impl<'a> Debug for ProofIter<'a>[src]

impl<'a> Iterator for ProofIter<'a>[src]

type Item = Result<ProofCmd, ParseError>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for ProofIter<'a>

impl<'a> Send for ProofIter<'a>

impl<'a> Sync for ProofIter<'a>

impl<'a> Unpin for ProofIter<'a>

impl<'a> UnwindSafe for ProofIter<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.