Enum libchao::Expr [−][src]
pub enum Expr { Nil, Bool(bool), Int(i64), Float(f64), Str(String), Symbol(String), Quote(Box<Expr>), Fun(Function, Arguments), Special(Function, Arguments), List(Vec<Expr>), }
Variants
Nil
Bool(bool)
Int(i64)
Float(f64)
Str(String)
Symbol(String)
Quote(Box<Expr>)
Fun(Function, Arguments)
Special(Function, Arguments)
List(Vec<Expr>)
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 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 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 Display for Expr
[src]
impl Display 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 Add for Expr
[src]
impl Add for Expr
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
fn add(self, other: Self) -> Self
Performs the +
operation.
impl Sub for Expr
[src]
impl Sub for Expr
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, other: Self) -> Self
[src]
fn sub(self, other: Self) -> Self
Performs the -
operation.
impl Mul for Expr
[src]
impl Mul for Expr
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
fn mul(self, other: Self) -> Self
Performs the *
operation.
impl Div for Expr
[src]
impl Div for Expr