pub type LexResult = Result<Spanned, LexicalError>;
Expand description

The result of lexing a token.

Aliased Type§

enum LexResult {
    Ok((Tok, TextRange)),
    Err(LexicalError),
}

Variants§

§1.0.0

Ok((Tok, TextRange))

Contains the success value

§1.0.0

Err(LexicalError)

Contains the error value