pub struct SimulatorConfig {Show 15 fields
pub deck_size: usize,
pub learn_span: usize,
pub max_cost_perday: f32,
pub max_ivl: f32,
pub learn_costs: [f32; 4],
pub review_costs: [f32; 4],
pub first_rating_prob: [f32; 4],
pub review_rating_prob: [f32; 3],
pub first_rating_offsets: [f32; 4],
pub first_session_lens: [f32; 4],
pub forget_rating_offset: f32,
pub forget_session_len: f32,
pub loss_aversion: f32,
pub learn_limit: usize,
pub review_limit: usize,
}Fields§
§deck_size: usize§learn_span: usize§max_cost_perday: f32§max_ivl: f32§learn_costs: [f32; 4]§review_costs: [f32; 4]§first_rating_prob: [f32; 4]§review_rating_prob: [f32; 3]§first_rating_offsets: [f32; 4]§first_session_lens: [f32; 4]§forget_rating_offset: f32§forget_session_len: f32§loss_aversion: f32§learn_limit: usize§review_limit: usizeTrait Implementations§
Source§impl Clone for SimulatorConfig
impl Clone for SimulatorConfig
Source§fn clone(&self) -> SimulatorConfig
fn clone(&self) -> SimulatorConfig
Returns a copy 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 SimulatorConfig
impl Debug for SimulatorConfig
Source§impl Default for SimulatorConfig
impl Default for SimulatorConfig
Source§impl PartialEq for SimulatorConfig
impl PartialEq for SimulatorConfig
impl StructuralPartialEq for SimulatorConfig
Auto Trait Implementations§
impl Freeze for SimulatorConfig
impl RefUnwindSafe for SimulatorConfig
impl Send for SimulatorConfig
impl Sync for SimulatorConfig
impl Unpin for SimulatorConfig
impl UnwindSafe for SimulatorConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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