Type Alias wagon_lexer::LexResult

source ·
pub type LexResult = Result<Tokens, LexingError>;
Expand description

The result of each lex step is either a token or an error.

Aliased Type§

enum LexResult {
    Ok(Tokens),
    Err(LexingError),
}

Variants§

§1.0.0

Ok(Tokens)

Contains the success value

§1.0.0

Err(LexingError)

Contains the error value