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