pub enum Error {
ConfigurationMissesLearningStage,
ReviewingPhaseEaseFactorEasyUpdateLowerThanOne,
ReviewingPhaseEaseFactorHardUpdateGreaterThanOne,
ReviewingPhaseInitialEaseFactorLowerThanOne,
Overflow,
IllegalJitterStandardDeviation,
UnknownRandDistrError,
NegativeRepetitionInterval,
}Expand description
The error type used by this crate.
Variants§
ConfigurationMissesLearningStage
The configuration has no or not enough stages in the learning phase. The stages in the learning phase are defined by Configuration::learning_phase_stage_delay_seconds.
ReviewingPhaseEaseFactorEasyUpdateLowerThanOne
The value of Configuration::reviewing_phase_ease_factor_easy_update is lower than one.
ReviewingPhaseEaseFactorHardUpdateGreaterThanOne
The value of Configuration::reviewing_phase_ease_factor_hard_update is greater than one.
ReviewingPhaseInitialEaseFactorLowerThanOne
The value of Configuration::reviewing_phase_initial_ease_factor is lower than one.
Overflow
An overflow occurred.
IllegalJitterStandardDeviation
The standard deviation given for the gaussian jitter variant is not accepted by rand_distr::Normal.
UnknownRandDistrError
An unexpected error in rand_distr occurred.
NegativeRepetitionInterval
An item was repeated before its previous repetition.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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