pub enum CheckResult {
Correct,
Wrong,
TooLow,
TooHigh,
}Expand description
Represents the various outcomes of checking an answer against an answers database.
Variants§
Correct
The answer is correct.
Wrong
The answer is incorrect.
TooLow
The answer is too low and incorrect.
TooHigh
The answer is too high and incorrect.
Trait Implementations§
Source§impl Clone for CheckResult
impl Clone for CheckResult
Source§fn clone(&self) -> CheckResult
fn clone(&self) -> CheckResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckResult
impl Debug for CheckResult
Source§impl PartialEq for CheckResult
impl PartialEq for CheckResult
impl StructuralPartialEq for CheckResult
Auto Trait Implementations§
impl Freeze for CheckResult
impl RefUnwindSafe for CheckResult
impl Send for CheckResult
impl Sync for CheckResult
impl Unpin for CheckResult
impl UnwindSafe for CheckResult
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