fsrs 6.6.2

FSRS for Rust, including Optimizer and Scheduler
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use snafu::Snafu;

/// Represents an error that can occur during FSRS operations.
#[derive(Snafu, Debug, PartialEq)]
pub enum FSRSError {
    NotEnoughData,
    Interrupted,
    InvalidParameters,
    OptimalNotFound,
    InvalidInput,
    InvalidDeckSize,
}

/// A type alias for [`Result`] with [`FSRSError`] as the error type.
pub type Result<T, E = FSRSError> = std::result::Result<T, E>;