Enum cpc::Token [−][src]
pub enum Token { Operator(Operator), UnaryOperator(UnaryOperator), Number(d128), FunctionIdentifier(FunctionIdentifier), Constant(Constant), Paren, Per, LexerKeyword(LexerKeyword), TextOperator(TextOperator), NamedNumber(NamedNumber), Negative, Unit(Unit), }
Expand description
Variants
Operator(Operator)
UnaryOperator(UnaryOperator)
Number(d128)
FunctionIdentifier(FunctionIdentifier)
Constant(Constant)
Used by the parser only
Used by the lexer only
LexerKeyword(LexerKeyword)
Used by the parser only
TextOperator(TextOperator)
NamedNumber(NamedNumber)
The -
symbol, specifically when used as -5
and not 5-5
. Used by the parser only
Unit(Unit)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more