[][src]Enum supermemo2::Quality

pub enum Quality {
    Zero,
    One,
    Two,
    Three,
    Four,
    Five,
}

Enum representing the quality of an answer from 0 to 5.

  • 0 - complete blackout.
  • 1 - incorrect response; the correct one remembered
  • 2 - incorrect response; where the correct one seemed easy to recall
  • 3 - correct response recalled with serious difficulty
  • 4 - correct response after a hesitation
  • 5 - perfect response

Variants

Zero
One
Two
Three
Four
Five

Methods

impl Quality[src]

pub fn from(q: usize) -> Result<Self, Error>[src]

Create a Quality object from a number between 0 and 5.

Trait Implementations

impl<'_> From<&'_ Quality> for f64[src]

impl Eq for Quality[src]

impl Ord for Quality[src]

impl PartialEq<Quality> for Quality[src]

impl PartialOrd<Quality> for Quality[src]

Auto Trait Implementations

impl Send for Quality

impl Sync for Quality

impl Unpin for Quality

impl UnwindSafe for Quality

impl RefUnwindSafe for Quality

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]