error_set 0.9.1

Quick error declarations and automatic conversions between errors for precisely typed error handling. Inspired by Zig's error set type.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use error_set::error_set;

error_set! {
    BookParsingError := {
        MissingDescriptionArg
    } || BookParsingError
    BookSectionParsingError := {
        MissingNameArg,
        NoContents,
    }
}

fn main() {}