[][src]Struct smt2::syntax::lexer::Lexer

pub struct Lexer<R: Iterator<Item = Result<char>>, M: Metrics> { /* fields omitted */ }

Implementations

impl<R: Iterator<Item = Result<char>>, M: Metrics> Lexer<R, M>[src]

pub fn new(source: R, cursor: Position, metrics: M) -> Lexer<R, M>

Notable traits for Lexer<R, M>

impl<R: Iterator<Item = Result<char>>, M: Metrics> Iterator for Lexer<R, M> type Item = Result<Located<Token>>;
[src]

pub fn location(&self) -> Span[src]

pub fn set_location(&mut self, location: Span)[src]

Update the lexer location.

Trait Implementations

impl<R: Iterator<Item = Result<char>>, M: Metrics> Iterator for Lexer<R, M>[src]

type Item = Result<Located<Token>>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R, M> !RefUnwindSafe for Lexer<R, M>

impl<R, M> Send for Lexer<R, M> where
    M: Send,
    R: Send

impl<R, M> Sync for Lexer<R, M> where
    M: Sync,
    R: Sync

impl<R, M> Unpin for Lexer<R, M> where
    M: Unpin,
    R: Unpin

impl<R, M> !UnwindSafe for Lexer<R, 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.