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
14
15
16
use error_set::error_set;

error_set! {
    /// Doc
    // comment
    /// Doc
    X := {
        A,
        B
    }
    /// Doc
    // comment
    /// Doc
}

pub fn main() {}