Skip to main content

Token

Struct Token 

Source
pub struct Token<'a>(/* private fields */);
Expand description

Token emitted by Tokenizer, including kind and source slice.

Typical usage:

Implementations§

Source§

impl<'a> Token<'a>

Source

pub fn token_type(&self) -> TokenType

The SQLite token type.

Source

pub fn text(&self) -> &'a str

The source text slice covered by this token.