2 releases
0.1.1 | Sep 10, 2022 |
---|---|
0.1.0 | Sep 10, 2022 |
#309 in No standard library
3KB
from-enum
It has the same interface as thiserror's #[from]
attribute, but it works in no-std.
Example
use from_enum::From;
#[derive(From)]
enum MyEnum {
String(#[from] String),
Int(#[from] i32),
}
Dependencies
~1.5MB
~35K SLoC