Trait NextTokenAndSpan

Source
pub trait NextTokenAndSpan {
    type Token;

    // Required methods
    fn token(&self) -> &Self::Token;
    fn span(&self) -> Span;
    fn had_line_break(&self) -> bool;
}

Required Associated Types§

Required Methods§

Source

fn token(&self) -> &Self::Token

Source

fn span(&self) -> Span

Source

fn had_line_break(&self) -> bool

Implementors§