Enum caminos_lib::config_parser::Token[][src]

pub enum Token {
Show 30 variants DummyStart, True, False, Where, Number(f64), LitStr(String), Ident(String), EqualEqual, LBrace, RBrace, LBracket, RBracket, LPar, RPar, Comma, Colon, Bang, At, Equal, Dot, Value(ConfigurationValue), Object(ConfigurationValue), Members(Vec<(String, ConfigurationValue)>), Pair(StringConfigurationValue), Array(Vec<ConfigurationValue>), Elements(Vec<ConfigurationValue>), Expression(Expr), FunctionCall(Expr), Arguments(Vec<(String, Expr)>), ExprPair(StringExpr),
}

Variants

DummyStart
True
False
Where
Number(f64)

Tuple Fields of Number

0: f64
LitStr(String)

Tuple Fields of LitStr

0: String
Ident(String)

Tuple Fields of Ident

0: String
EqualEqual
LBrace
RBrace
LBracket
RBracket
LPar
RPar
Comma
Colon
Bang
At
Equal
Dot

Tuple Fields of Value

0: ConfigurationValue

Tuple Fields of Object

0: ConfigurationValue

Tuple Fields of Members

0: Vec<(String, ConfigurationValue)>

Tuple Fields of Pair

0: String1: ConfigurationValue

Tuple Fields of Array

0: Vec<ConfigurationValue>

Tuple Fields of Elements

0: Vec<ConfigurationValue>
Expression(Expr)

Tuple Fields of Expression

0: Expr
FunctionCall(Expr)

Tuple Fields of FunctionCall

0: Expr
Arguments(Vec<(String, Expr)>)

Tuple Fields of Arguments

0: Vec<(String, Expr)>
ExprPair(StringExpr)

Tuple Fields of ExprPair

0: String1: Expr

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.