mc-exam-randomizer 0.2.0

This is a library that help produce a randomized multiple choice (mc) exam.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ExamReaderError {
    #[error("Redering error")]
    IOError(#[from] std::io::Error),
    #[error("Error parsing `{0}`")]
    TemplateError(String),
    #[error("the data for key `{0}` is not available")]
    Redaction(String),
    #[error("invalid header (expected {expected:?}, found {found:?})")]
    InvalidHeader { expected: String, found: String },
    #[error("unknown data store error")]
    Unknown,
}