Enum cleaver::fe::ast::Expression
[−]
[src]
pub enum Expression { Literal { lit: Literal, }, Variable { var: Rc<Variable>, }, Call { function: String, args: Vec<Node<Expression>>, }, Unary { op: UnaryOp, expr: Box<Node<Expression>>, }, Binary { op: BinaryOp, left: Box<Node<Expression>>, right: Box<Node<Expression>>, }, Parenthesis { expr: Box<Node<Expression>>, }, }
Variants
Literal
Fields
lit: Literal |
Variable
Fields
var: Rc<Variable> |
Call
Fields
function: String | |
args: Vec<Node<Expression>> |
Unary
Fields
op: UnaryOp | |
expr: Box<Node<Expression>> |
Binary
Fields
op: BinaryOp | |
left: Box<Node<Expression>> | |
right: Box<Node<Expression>> |
Parenthesis
Fields
expr: Box<Node<Expression>> |
Trait Implementations
impl PartialEq for Expression
[src]
fn eq(&self, __arg_0: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Expression) -> bool
This method tests for !=
.