Available on crate feature
ast-models only.Expand description
AST models for expressions in wright source code.
Structs§
- Binary
Expr - A binary operation, such as
a + b. - Call
Expr - A function call, such as
f(1, 2). - Cast
Expr - A type cast, such as
x as u64. - Expr
- An expression in wright source code.
- Field
Expr - A field access, such as
point.x. - Field
Init - A field initializer in a RecordLiteral, such as the
x: 1inPoint { x: 1 }. - ForExpr
- A
forloop, such asfor i in 0..10 { ... }. - IfExpr
- An
ifexpression. - Index
Expr - An index expression, such as
a[i]. - Loop
Expr - An infinite
loop. - Range
Expr - A range, such as
0..10or1..=100. - Record
Literal - A record literal, such as
Point { x: 1, y: 2 }. - Unary
Expr - A unary operation, such as
-x. - While
Expr - A
whileloop.
Enums§
- Array
Literal - An array literal.
- Binary
Operation - The different binary operations.
- Binding
- A name being bound in a
let/varstatement orforloop. - Expr
Kind - The different kinds of Exprs.
- Unary
Operation - The different unary operations.