scriptx 0.4.7

ScriptX is a command line tool to extract scriptures out of the American Sign Language version of the New World Translation.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Module that contains custom error types used by the library.
use core::fmt;

#[derive(Debug)]
pub enum Errors {
    /// Errors dealing with file read or write errors.
    FileError,
}

impl std::error::Error for Errors {}

impl std::fmt::Display for Errors {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        match self {
            Errors::FileError => write!(f, "FileError:"),
        }
    }
}