pub struct SpacedBlock {
pub block_idx: u32,
pub recall_count: u16,
pub last_recall_ms: u64,
pub interval_days: f32,
pub ease_factor: f32,
pub importance: u8,
}Expand description
Egy blokk spaced repetition állapota.
Fields§
§block_idx: u32§recall_count: u16§last_recall_ms: u64§interval_days: f32§ease_factor: f32§importance: u8Implementations§
Source§impl SpacedBlock
impl SpacedBlock
Sourcepub fn overdue_days(&self, now_ms: u64) -> f32
pub fn overdue_days(&self, now_ms: u64) -> f32
Mennyivel késett (nap). Negatív = még nem esedékes.
Sourcepub fn record_recall(&mut self, quality: u8, now_ms: u64)
pub fn record_recall(&mut self, quality: u8, now_ms: u64)
SM-2 minősítés alapján új ease_factor + interval. quality: 0 (legrosszabb) – 5 (legjobb)
Sourcepub fn spacing_boost(&self, now_ms: u64) -> f32
pub fn spacing_boost(&self, now_ms: u64) -> f32
Spacing boost érték a recall scoring-hoz. 0.0 ha nem esedékes, pozitív ha due vagy túlkésett.
Trait Implementations§
Source§impl Clone for SpacedBlock
impl Clone for SpacedBlock
Auto Trait Implementations§
impl Freeze for SpacedBlock
impl RefUnwindSafe for SpacedBlock
impl Send for SpacedBlock
impl Sync for SpacedBlock
impl Unpin for SpacedBlock
impl UnsafeUnpin for SpacedBlock
impl UnwindSafe for SpacedBlock
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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