pub struct Reviews(pub Vec<Review>);Tuple Fields§
§0: Vec<Review>Implementations§
Source§impl Reviews
impl Reviews
pub fn strength(&self) -> Option<Duration>
pub fn next_strength(&self, grade: Grade) -> Duration
pub fn expected_gain(&self) -> Option<f32>
pub fn pure_expected_gain( recall_rate: f32, current_strength: Duration, fail_strength: Duration, win_strength: Duration, ) -> f32
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn into_inner(self) -> Vec<Review>
pub fn from_raw(reviews: Vec<Review>) -> Self
pub fn add_review(&mut self, review: Review)
pub fn lapses(&self) -> u32
pub fn new_stability( grade: &Grade, time_passed: Option<Duration>, current_stability: Duration, ) -> Duration
pub fn stability(&self) -> Option<Duration>
pub fn recall_rate(&self) -> Option<RecallRate>
pub fn calculate_recall_rate( days_passed: &Duration, stability: &Duration, ) -> RecallRate
pub fn time_since_last_review(&self) -> Option<Duration>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reviews
impl<'de> Deserialize<'de> for Reviews
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Reviews
impl Ord for Reviews
Source§impl PartialOrd for Reviews
impl PartialOrd for Reviews
impl Eq for Reviews
impl StructuralPartialEq for Reviews
Auto Trait Implementations§
impl Freeze for Reviews
impl RefUnwindSafe for Reviews
impl Send for Reviews
impl Sync for Reviews
impl Unpin for Reviews
impl UnwindSafe for Reviews
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.