pub struct LetStatement {
    pub let_token: Let,
    pub ident: Punctuated<Ident, Vertical>,
    pub eq: Eq,
    pub expr: Expression,
    pub rules: Vec<(RuleOperator, Expression)>,
    pub semi: Semi,
}
Expand description

let <something> = <something else>. Defines variables and possibly adds rules to them.

Fields§

§let_token: Let

The let token.

§ident: Punctuated<Ident, Vertical>

The lhs ident iterator.

§eq: Eq

The = token.

§expr: Expression

The rhs expression.

§rules: Vec<(RuleOperator, Expression)>

The rules after the rhs expression.

§semi: Semi

The ending semicolon.

Trait Implementations§

Formats the value using the given formatter. Read more
Tries to parse input tokens into Self. Read more
Gets the parsed item’s span.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.