pub struct Card {
pub id: i64,
pub difficulty: f32,
pub stability: f32,
pub last_date: f32,
pub due: f32,
pub interval: f32,
pub lapses: u32,
}Fields§
§id: i64§difficulty: f32§stability: f32§last_date: f32§due: f32§interval: f32§lapses: u32Implementations§
Source§impl Card
impl Card
pub fn power_forgetting_curve(&self, w: &[f32], t: f32) -> f32
pub fn retention_on(&self, w: &[f32], date: f32) -> f32
pub fn retrievability(&self, w: &[f32]) -> f32
pub fn scheduled_due(&self) -> f32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more