pub trait EquationMember {
    // Required methods
    fn equation_repr(&self) -> String;
    fn value(&self) -> f64;

    // Provided methods
    fn simplify(&self) -> Option<Operation> { ... }
    fn is_zero(&self) -> bool { ... }
    fn latex_string(&self) -> String { ... }
    fn as_operation(&self) -> Option<&Operation> { ... }
}

Required Methods§

source

fn equation_repr(&self) -> String

Returns a string representation of the equation

source

fn value(&self) -> f64

Returns the numeric value of the equation

Provided Methods§

source

fn simplify(&self) -> Option<Operation>

Returns a simplified version of the equation reducing the number of operations involved

source

fn is_zero(&self) -> bool

Returns true if the value of the equation is zero This is important for the required array solver traits

source

fn latex_string(&self) -> String

Returns a latex representation of the equation for the front end

source

fn as_operation(&self) -> Option<&Operation>

Returns Some(Operation) if the equation is representable as an operation

Implementations on Foreign Types§

source§

impl EquationMember for usize

source§

impl EquationMember for f64

Implementors§