pub struct SchedulingData {
pub interval: i32,
pub difficulty: f32,
pub memory_strength: f32,
pub adjusting_factor: f32,
pub times_reviewed: i32,
pub times_recalled: i32,
}
Expand description
Struct containing item specific data related to it’s scheduling.
Fields§
§interval: i32
the number of days between the last review event and the next one
difficulty: f32
numerical representation of the ‘difficulty’ of the item. More difficult items will get a larger difficulty value
memory_strength: f32
numerical representation of how well the memory of this item has established itself in the user.
adjusting_factor: f32
How the quotient between difficulty and memory strenght should be scaled. Used when the actual retention probability is not equal to the expected one.
times_reviewed: i32
how many times this card has been reviewed
times_recalled: i32
how many times this card has been reviewed successfully
Trait Implementations§
Source§impl Clone for SchedulingData
impl Clone for SchedulingData
Source§fn clone(&self) -> SchedulingData
fn clone(&self) -> SchedulingData
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 SchedulingData
impl Debug for SchedulingData
Source§impl Default for SchedulingData
impl Default for SchedulingData
Auto Trait Implementations§
impl Freeze for SchedulingData
impl RefUnwindSafe for SchedulingData
impl Send for SchedulingData
impl Sync for SchedulingData
impl Unpin for SchedulingData
impl UnwindSafe for SchedulingData
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