Enum endbasic_core::ast::Expr [−][src]
pub enum Expr {}Show variants
Boolean(bool), Double(f64), Integer(i32), Symbol(VarRef), Text(String), Add(Box<Expr>, Box<Expr>), Subtract(Box<Expr>, Box<Expr>), Multiply(Box<Expr>, Box<Expr>), Divide(Box<Expr>, Box<Expr>), Modulo(Box<Expr>, Box<Expr>), Negate(Box<Expr>), Equal(Box<Expr>, Box<Expr>), NotEqual(Box<Expr>, Box<Expr>), Less(Box<Expr>, Box<Expr>), LessEqual(Box<Expr>, Box<Expr>), Greater(Box<Expr>, Box<Expr>), GreaterEqual(Box<Expr>, Box<Expr>), And(Box<Expr>, Box<Expr>), Not(Box<Expr>), Or(Box<Expr>, Box<Expr>), Xor(Box<Expr>, Box<Expr>), Call(VarRef, Vec<Expr>),
Expand description
Represents an expression and provides mechanisms to evaluate it.
Variants
Boolean(bool)
A literal boolean value.
Double(f64)
A literal double-precision floating point value.
Integer(i32)
A literal integer value.
Symbol(VarRef)
A reference to a variable.
Text(String)
A literal string value.
Arithmetic addition of two expressions.
Arithmetic subtraction of two expressions.
Arithmetic multiplication of two expressions.
Arithmetic division of two expressions.
Arithmetic modulo operation of two expressions.
Arithmetic sign flip of an expression.
Relational equality comparison of two expressions.
Relational inequality comparison of two expressions.
Relational less-than comparison of two expressions.
Relational less-than or equal-to comparison of two expressions.
Relational greater-than comparison of two expressions.
Relational greater-than or equal-to comparison of two expressions.
Logical and of two expressions.
Logical not of an expression.
Logical or of two expressions.
Logical xor of two expressions.
A function call or an array reference.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl UnwindSafe for Expr
Blanket Implementations
Mutably borrows from an owned value. Read more