[−][src]Enum supermemo2::Quality
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
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]
fn cmp(&self, other: &Self) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,