error-gen 0.1.0

Simple codegen for implementing `std::error::Error`
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Currently a very simple crate to generate error impls from unit structs.

# Examples

```rust
use error_gen::ErrorGen;

#[derive(Debug, ErrorGen)]
pub struct MyError;

fn main() {
    let e = MyError;
    assert_eq!(e.to_string(), "my error");
    assert!(std::error::Error::source(e).is_none());
}
```