Trait texlang::token::lexer::Config

source ·
pub trait Config {
    // Required methods
    fn cat_code(&self, c: char) -> CatCode;
    fn end_line_char(&self) -> Option<char>;
}
Expand description

Configuration for a specific instance of the Lexer.

A Rust type implementing this trait is provided when getting the next token from the lexer.

Required Methods§

source

fn cat_code(&self, c: char) -> CatCode

Return the current category code of the provided character.

source

fn end_line_char(&self) -> Option<char>

Return the current end of line character.

Implementors§