Enum leo_ast::expression::Expression[][src]

pub enum Expression {
Show 16 variants Identifier(Identifier), Value(ValueExpression), Binary(BinaryExpression), Unary(UnaryExpression), Ternary(TernaryExpression), Cast(CastExpression), ArrayInline(ArrayInlineExpression), ArrayInit(ArrayInitExpression), ArrayAccess(ArrayAccessExpression), ArrayRangeAccess(ArrayRangeAccessExpression), TupleInit(TupleInitExpression), TupleAccess(TupleAccessExpression), CircuitInit(CircuitInitExpression), CircuitMemberAccess(CircuitMemberAccessExpression), CircuitStaticFunctionAccess(CircuitStaticFunctionAccessExpression), Call(CallExpression),
}
Expand description

Expression that evaluates to a value

Variants

Identifier

Tuple Fields of Identifier

0: Identifier
Value

Tuple Fields of Value

0: ValueExpression
Binary

Tuple Fields of Binary

0: BinaryExpression
Unary

Tuple Fields of Unary

0: UnaryExpression
Ternary

Tuple Fields of Ternary

0: TernaryExpression
Cast

Tuple Fields of Cast

0: CastExpression
ArrayInline

Tuple Fields of ArrayInline

0: ArrayInlineExpression
ArrayInit

Tuple Fields of ArrayInit

0: ArrayInitExpression
ArrayAccess

Tuple Fields of ArrayAccess

0: ArrayAccessExpression
ArrayRangeAccess

Tuple Fields of ArrayRangeAccess

0: ArrayRangeAccessExpression
TupleInit

Tuple Fields of TupleInit

0: TupleInitExpression
TupleAccess

Tuple Fields of TupleAccess

0: TupleAccessExpression
CircuitInit

Tuple Fields of CircuitInit

0: CircuitInitExpression
CircuitMemberAccess

Tuple Fields of CircuitMemberAccess

0: CircuitMemberAccessExpression
CircuitStaticFunctionAccess

Tuple Fields of CircuitStaticFunctionAccess

0: CircuitStaticFunctionAccessExpression
Call

Tuple Fields of Call

0: CallExpression

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

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

Converts the given value to a String. 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.