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]

fn derive(&self) -> Expr

Trait Implementations

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 Debug for Expr
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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 !=.

impl Eq for Expr
[src]

impl Display for Expr
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.