Enum leo_asg::expression::Expression[][src]

pub enum Expression<'a> {
Show 15 variants VariableRef(VariableRef<'a>), Constant(Constant<'a>), Binary(BinaryExpression<'a>), Unary(UnaryExpression<'a>), Ternary(TernaryExpression<'a>), Cast(CastExpression<'a>), ArrayInline(ArrayInlineExpression<'a>), ArrayInit(ArrayInitExpression<'a>), ArrayAccess(ArrayAccessExpression<'a>), ArrayRangeAccess(ArrayRangeAccessExpression<'a>), TupleInit(TupleInitExpression<'a>), TupleAccess(TupleAccessExpression<'a>), CircuitInit(CircuitInitExpression<'a>), CircuitAccess(CircuitAccessExpression<'a>), Call(CallExpression<'a>),
}

Variants

VariableRef

Tuple Fields of VariableRef

0: VariableRef<'a>
Constant

Tuple Fields of Constant

0: Constant<'a>
Binary

Tuple Fields of Binary

0: BinaryExpression<'a>
Unary

Tuple Fields of Unary

0: UnaryExpression<'a>
Ternary

Tuple Fields of Ternary

0: TernaryExpression<'a>
Cast

Tuple Fields of Cast

0: CastExpression<'a>
ArrayInline

Tuple Fields of ArrayInline

0: ArrayInlineExpression<'a>
ArrayInit

Tuple Fields of ArrayInit

0: ArrayInitExpression<'a>
ArrayAccess

Tuple Fields of ArrayAccess

0: ArrayAccessExpression<'a>
ArrayRangeAccess

Tuple Fields of ArrayRangeAccess

0: ArrayRangeAccessExpression<'a>
TupleInit

Tuple Fields of TupleInit

0: TupleInitExpression<'a>
TupleAccess

Tuple Fields of TupleAccess

0: TupleAccessExpression<'a>
CircuitInit

Tuple Fields of CircuitInit

0: CircuitInitExpression<'a>
CircuitAccess

Tuple Fields of CircuitAccess

0: CircuitAccessExpression<'a>
Call

Tuple Fields of Call

0: CallExpression<'a>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Performs the conversion.

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.

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

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.