fn new_ease(&self, settings: &settings::TagSettings, score: Score) -> Ease {
        // Add value to the ease.
        let new_ease = self.ease + settings.ease_increase[score as usize];

        // Saturate if necessary.
        if new_ease < settings.min_ease {
            settings.min_ease
        } else if new_ease > settings.max_ease {
            settings.max_ease
        } else {
            new_ease
        }
    }
/// Calculate the new ease after reviewing a card with score `score`.
Calculate the new ease after reviewing a card with score `score`.
Calculate the new ease after reviewing a card with score ` score ` .
fn new_ease(&self, settings: &settings::TagSettings, score: Score) -> Ease {
        // Add value to the ease.
        let new_ease = self.ease + settings.ease_increase[score as usize];
        // Saturate if necessary.
        if new_ease < settings.min_ease {
            settings.min_ease
        } else if new_ease > settings.max_ease {
            settings.max_ease
        } else {
            new_ease
        }
    }
fn new_ease ( & self , settings : & settings :: TagSettings , score : Score ) -> Ease { // Add value to the ease. let new_ease = self . ease + settings . ease_increase [ score as usize ] ; // Saturate if necessary. if new_ease < settings . min_ease { settings . min_ease } else if new_ease > settings . max_ease { settings . max_ease } else { new_ease } }
Calculate the new ease after reviewing a card with score `score`.
Calculate the new ease after reviewing a card with score ` score ` .
&self
settings
&settings::TagSettings
score
Score
&self
settings
&settings::TagSettings
score
Score