pub struct TwoVariables { /* private fields */ }Trait Implementations§
Source§impl Debug for TwoVariables
impl Debug for TwoVariables
Source§impl Display for TwoVariables
impl Display for TwoVariables
Source§impl Equation for TwoVariables
impl Equation for TwoVariables
Source§impl Question for TwoVariables
impl Question for TwoVariables
type Output = (i32, i32)
fn new(equation: QuestionType, max: i32) -> Self
fn get_correct_answer(&self) -> (i32, i32)
fn calculate(&self) -> (i32, i32)
fn post_to_cmd(&self) -> bool
fn read_answer_from_cmd() -> (i32, i32)
fn correct_answer_to_string(&self) -> String
fn verify_answer(correct_answer: Self::Output, answer: Self::Output) -> bool
fn print(&self)
Auto Trait Implementations§
impl Freeze for TwoVariables
impl RefUnwindSafe for TwoVariables
impl Send for TwoVariables
impl Sync for TwoVariables
impl Unpin for TwoVariables
impl UnwindSafe for TwoVariables
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