[][src]Struct logos::SpannedIter

pub struct SpannedIter<'source, Token: Logos<'source>> { /* fields omitted */ }

Iterator that pairs tokens with their position in the source.

Look at Lexer::spanned for documentation.

Trait Implementations

impl<'source, Token> Iterator for SpannedIter<'source, Token> where
    Token: Logos<'source>, 
[src]

type Item = (Token, Span)

The type of the elements being iterated over.

Auto Trait Implementations

impl<'source, Token> RefUnwindSafe for SpannedIter<'source, Token> where
    Token: RefUnwindSafe,
    <Token as Logos<'source>>::Extras: RefUnwindSafe,
    <Token as Logos<'source>>::Source: RefUnwindSafe

impl<'source, Token> Send for SpannedIter<'source, Token> where
    Token: Send,
    <Token as Logos<'source>>::Extras: Send,
    <Token as Logos<'source>>::Source: Sync

impl<'source, Token> Sync for SpannedIter<'source, Token> where
    Token: Sync,
    <Token as Logos<'source>>::Extras: Sync,
    <Token as Logos<'source>>::Source: Sync

impl<'source, Token> Unpin for SpannedIter<'source, Token> where
    Token: Unpin,
    <Token as Logos<'source>>::Extras: Unpin

impl<'source, Token> UnwindSafe for SpannedIter<'source, Token> where
    Token: UnwindSafe,
    <Token as Logos<'source>>::Extras: UnwindSafe,
    <Token as Logos<'source>>::Source: RefUnwindSafe

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.