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
Auto Trait Implementations§
impl RefUnwindSafe for Equation
impl Send for Equation
impl Sync for Equation
impl Unpin for Equation
impl UnwindSafe for Equation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more