Struct spaced_rs::UpdateParameters
source · [−]pub struct UpdateParameters {
pub difficulty_change_factor: f32,
pub memory_strength_change_factor: f32,
}Expand description
struct containing various parameters used to update the scheduling data of an item
Fields
difficulty_change_factor: f32the factor (in percent) that the difficulty is increased/decreased if the user finds the item to hard/easy
memory_strength_change_factor: f32the faactor (in percent) that the memory_strength is increased when reviewing an item
Trait Implementations
sourceimpl Clone for UpdateParameters
impl Clone for UpdateParameters
sourcefn clone(&self) -> UpdateParameters
fn clone(&self) -> UpdateParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for UpdateParameters
impl Debug for UpdateParameters
Auto Trait Implementations
impl RefUnwindSafe for UpdateParameters
impl Send for UpdateParameters
impl Sync for UpdateParameters
impl Unpin for UpdateParameters
impl UnwindSafe for UpdateParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more