Enum axon_parser::ast::Expr [−][src]
pub enum Expr {
Show 32 variants
Add(Box<Add>),
And(Box<And>),
Cmp(Box<Cmp>),
Div(Box<Div>),
Eq(Box<Eq>),
Gt(Box<Gt>),
Gte(Box<Gte>),
Lt(Box<Lt>),
Lte(Box<Lte>),
Mul(Box<Mul>),
Ne(Box<Ne>),
Or(Box<Or>),
Sub(Box<Sub>),
Assign(Assign),
Block(Block),
Call(Call),
Def(Def),
Dict(Dict),
DotCall(DotCall),
Func(Box<Func>),
Id(Id),
If(Box<If>),
List(List),
Lit(Lit),
Neg(Box<Neg>),
Not(Box<Not>),
PartialCall(PartialCall),
Range(Box<Range>),
Return(Box<Return>),
Throw(Box<Throw>),
TrapCall(Box<TrapCall>),
TryCatch(Box<TryCatch>),
}
Expand description
Enumerates the types of Axon expression.
Variants
Assign(Assign)
Tuple Fields of Assign
0: Assign
Block(Block)
Tuple Fields of Block
0: Block
Call(Call)
Tuple Fields of Call
0: Call
Def(Def)
Tuple Fields of Def
0: Def
Dict(Dict)
Tuple Fields of Dict
0: Dict
DotCall(DotCall)
Tuple Fields of DotCall
0: DotCall
Id(Id)
Tuple Fields of Id
0: Id
List(List)
Tuple Fields of List
0: List
Lit(Lit)
Tuple Fields of Lit
0: Lit
PartialCall(PartialCall)
Tuple Fields of PartialCall
0: PartialCall
Implementations
May return an int representing how high the expression’s precendence is, where 1 is the highest precedence.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl UnwindSafe for Expr
Blanket Implementations
Mutably borrows from an owned value. Read more