pub enum Expr<'input> {
Show 22 variants None(None), Bool(Bool<'input>), Num(Num<'input>), Ident(Ident<'input>), Atom(Atom<'input>), Str(Str<'input>), Binary(Binary<'input>), Call(Call<'input>), Unary(Unary<'input>), Assign(Assign<'input>), If(If<'input>), InlineFun(InlineFun<'input>), Fun(Fun<'input>), Block(Block<'input>), ListLit(ListLit<'input>), MapLit(MapLit<'input>), Struct(Struct<'input>), Var(Var<'input>), While(While<'input>), Break(Break<'input>), Continue(Continue<'input>), Return(Return<'input>),
}
Expand description

An xlang expression.

Variants

None(None)

Bool(Bool<'input>)

Num(Num<'input>)

Ident(Ident<'input>)

Atom(Atom<'input>)

Str(Str<'input>)

Binary(Binary<'input>)

Call(Call<'input>)

Unary(Unary<'input>)

Assign(Assign<'input>)

If(If<'input>)

InlineFun(InlineFun<'input>)

Fun(Fun<'input>)

Block(Block<'input>)

ListLit(ListLit<'input>)

MapLit(MapLit<'input>)

Struct(Struct<'input>)

Var(Var<'input>)

While(While<'input>)

Break(Break<'input>)

Continue(Continue<'input>)

Return(Return<'input>)

Implementations

Creates a new none expression.

Creates a new boolean expression.

Creates a new decimal integer expression.

Creates a new hexadecimal integer expression.

Creates a new binary integer expression.

Creates a new octal integer expression.

Creates a new floating point number expression.

Creates a new identifier expression.

Creates a new atom expression.

Creates a new string expression.

Creates a new binary operation.

Creates a new function call operation.

Creates a new function call operation.

Creates a new assignment operation.

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 location of this expression.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.