Configuration

Struct Configuration 

Source
pub struct Configuration {
Show 16 fields pub learning_phase_stage_delay_seconds: Vec<u16>, pub learning_phase_easy_skip_stages: u16, pub learning_phase_easy_may_skip_last_stage: bool, pub learning_phase_delay_jitter: Jitter, pub reviewing_phase_initial_delay_seconds: u32, pub reviewing_phase_initial_ease_factor: f64, pub reviewing_phase_min_ease_factor: f64, pub reviewing_phase_max_ease_factor: f64, pub reviewing_phase_initial_ease_max_easy_count: u16, pub reviewing_phase_initial_ease_max_hard_count: u16, pub reviewing_phase_ease_factor_easy_update: f64, pub reviewing_phase_ease_factor_hard_update: f64, pub reviewing_phase_ease_factor_again_update: f64, pub reviewing_phase_easy_one_time_interval_bonus: f64, pub reviewing_phase_hard_fixed_interval_factor: Option<f64>, pub reviewing_phase_delay_jitter: Jitter,
}
Expand description

The configuration of the algorithm.

Fields§

§learning_phase_stage_delay_seconds: Vec<u16>

The delays between repetitions in the initial learning phase. These are given as seconds.

Warning: This vector must contain at least one value.

Example: Setting learning_stages to [10, 60] causes the item to be repeated 10 seconds after the initial repetition, and another 60 seconds after that.

§learning_phase_easy_skip_stages: u16

The amount of stages skipped if the user chooses easy in the learning phase. A value of zero resembles the behaviour of a normal result.

§learning_phase_easy_may_skip_last_stage: bool

If true, if the user chooses easy in the learning phase and this would skip past the last stage, the item directly enters the reviewing phase. If false, then the item will always enter the last stage, and only after successfully repeating again the item may enter the reviewing phase.

§learning_phase_delay_jitter: Jitter

A random variation of the delay during the learning phase.

§reviewing_phase_initial_delay_seconds: u32

The initial delay in the reviewing phase in seconds.

§reviewing_phase_initial_ease_factor: f64

The initial ease factor used in the reviewing phase.

§reviewing_phase_min_ease_factor: f64

The minimum ease factor used in the reviewing phase.

§reviewing_phase_max_ease_factor: f64

The maximum ease factor used in the reviewing phase.

§reviewing_phase_initial_ease_max_easy_count: u16

The maximum number of easy results from the learning phase to be applied to the initial ease factor when entering the reviewing phase.

§reviewing_phase_initial_ease_max_hard_count: u16

The maximum number of hard results from the learning phase to be applied to the initial ease factor when entering the reviewing phase.

§reviewing_phase_ease_factor_easy_update: f64

The factor applied to the ease factor on an easy result.

§reviewing_phase_ease_factor_hard_update: f64

The factor applied to the ease factor on a hard result.

§reviewing_phase_ease_factor_again_update: f64

The factor applied to the ease factor on an again result.

§reviewing_phase_easy_one_time_interval_bonus: f64

A factor applied to the length of the learning interval on an easy answer, additionally to the ease factor. This factor is applied only one an easy answer, and does not affect the update of the ease factor.

§reviewing_phase_hard_fixed_interval_factor: Option<f64>

If set, the learning interval is updated by this exact factor on an hard answer, without accounting for the ease factor. The ease factor is still updated in the background.

§reviewing_phase_delay_jitter: Jitter

A random variation of the delay during the reviewing phase.

Trait Implementations§

Source§

impl Clone for Configuration

Source§

fn clone(&self) -> Configuration

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Configuration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V