Enum gluon_parser::lexer::Token
[−]
[src]
pub enum Token<Id> { Ident(Id, IdentType), Operator(Id), String(String), Char(char), Int(i64), Byte(u8), Float(f64), DocComment(String), Let, And, In, Type, Match, With, If, Then, Else, Open(Delimiter), Close(Delimiter), Lambda, RightArrow, Colon, Dot, Comma, Pipe, Equal, OpenBlock, CloseBlock, Semi, EOF, }
Variants
Ident(Id, IdentType)
Operator(Id)
String(String)
Char(char)
Int(i64)
Byte(u8)
Float(f64)
DocComment(String)
Let
And
In
Type
Match
With
If
Then
Else
Open(Delimiter)
Close(Delimiter)
Lambda
RightArrow
Colon
Dot
Comma
Pipe
Equal
OpenBlock
CloseBlock
Semi
EOF
Methods
impl<Id> Token<Id>
[src]
Trait Implementations
impl<Id: Clone> Clone for Token<Id>
[src]
fn clone(&self) -> Token<Id>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Id: PartialEq> PartialEq for Token<Id>
[src]
fn eq(&self, __arg_0: &Token<Id>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Token<Id>) -> bool
This method tests for !=
.