Enum escodegen::Expr [−][src]
pub enum Expr { Array(Vec<Expr>), Assign(String, Box<Expr>), Binary(BinaryOperator, Box<Expr>, Box<Expr>), Bool(bool), Call(Box<Expr>, Vec<Expr>), Function(Vec<String>, Vec<Stmt>), Member(Box<Expr>, Box<Expr>), Null, Number(f64), Object(Vec<(String, Expr)>), String(String), This, Unary(UnaryOperator, Box<Expr>), Undefined, Var(String), }
Variants
Array(Vec<Expr>)
Assign(String, Box<Expr>)
Binary(BinaryOperator, Box<Expr>, Box<Expr>)
Bool(bool)
Call(Box<Expr>, Vec<Expr>)
Function(Vec<String>, Vec<Stmt>)
Member(Box<Expr>, Box<Expr>)
Null
Number(f64)
Object(Vec<(String, Expr)>)
String(String)
This
Unary(UnaryOperator, Box<Expr>)
Undefined
Var(String)
Trait Implementations
impl Clone for Expr
[src]
impl Clone for Expr
fn clone(&self) -> Expr
[src]
fn clone(&self) -> Expr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Expr
[src]
impl Debug for Expr
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Expr
[src]
impl PartialEq for Expr
fn eq(&self, other: &Expr) -> bool
[src]
fn eq(&self, other: &Expr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Expr) -> bool
[src]
fn ne(&self, other: &Expr) -> bool
This method tests for !=
.
impl Display for Expr
[src]
impl Display for Expr