Enum liquid::compiler::Token
[−]
[src]
pub enum Token { Pipe, Dot, Colon, Comma, OpenSquare, CloseSquare, OpenRound, CloseRound, Question, Dash, Assignment, Identifier(String), StringLiteral(String), NumberLiteral(f32), BooleanLiteral(bool), DotDot, Comparison(ComparisonOperator), Or, }
Variants
Pipe
Dot
Colon
Comma
OpenSquare
CloseSquare
OpenRound
CloseRound
Question
Dash
Assignment
Identifier(String)
StringLiteral(String)
NumberLiteral(f32)
BooleanLiteral(bool)
DotDot
Comparison(ComparisonOperator)
Or
Methods
impl Token
[src]
fn to_value(&self) -> Result<Value, Error>
[src]
Parses a token that can possibly represent a Value to said Value. Returns an Err if the token can not be interpreted as a Value.
fn to_arg(&self) -> Result<Argument, Error>
[src]
Translates a Token to a Value, looking it up in the context if necessary
Trait Implementations
impl Clone for Token
[src]
fn clone(&self) -> Token
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Token
[src]
impl PartialEq for Token
[src]
fn eq(&self, __arg_0: &Token) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Token) -> bool
[src]
This method tests for !=
.