Type Alias Lexed

Source
pub type Lexed<'input> = Result<(usize, Token<'input>, usize), ParserError>;
Expand description

The value produced by the Lexer when iterated

Aliased Type§

pub enum Lexed<'input> {
    Ok((usize, Token<'input>, usize)),
    Err(ParserError),
}

Variants§

§1.0.0

Ok((usize, Token<'input>, usize))

Contains the success value

§1.0.0

Err(ParserError)

Contains the error value