6 releases
0.3.1 | Mar 19, 2024 |
---|---|
0.3.0 | Jun 10, 2023 |
0.2.2 | Mar 16, 2023 |
0.1.0 | Aug 15, 2022 |
#583 in Rust patterns
5KB
Macros for get primitive enum from complex
examples:
#[derive(PrimitiveFromEnum)]
#[coming(primitive = "Primitive")]
enum Complex {
A(String),
B(u32),
C
}
#[derive(FromU8)]
enum Primitive {
A,
B,
C,
}
Dependencies
~240–680KB
~16K SLoC