pub struct Equation { /* private fields */ }Expand description
Equation with an a, b, and operator. Sol is the solution to the equation and is calculated when get_sol() is called.
Example
Implementations§
source§impl Equation
impl Equation
sourcepub fn set_operator(&mut self, operator: char)
pub fn set_operator(&mut self, operator: char)
sets the operator
sourcepub fn get_operator(&self) -> char
pub fn get_operator(&self) -> char
returns the operator