from-enum 0.1.1

Provides a derive proc macro for deriving From on enums
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# from-enum

It has the same interface as thiserror's `#[from]` attribute, but it works in no-std.

## Example

```rust
use from_enum::From;

#[derive(From)]
enum MyEnum {
    String(#[from] String),
    Int(#[from] i32),
}
```