Struct expr::Expr
[−]
[src]
pub struct Expr(_);
Methods
impl Expr
[src]
fn new(expr: _Expression) -> Expr
fn mul(exprs: Vec<Expr>) -> Expr
fn add(exprs: Vec<Expr>) -> Expr
fn exp(base: Expr, i: i64) -> Expr
fn var(num: i64, exp: i64) -> Expr
fn num(num: i64) -> Expr
impl Expr
[src]
fn simplify(&self) -> Expr
fn simplify_with_exp(&self) -> Expr
impl Expr
[src]
Trait Implementations
impl Debug for Expr
[src]
impl Clone for Expr
[src]
fn clone(&self) -> Expr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Expr
[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: &Rhs) -> bool
1.0.0
This method tests for !=
.