parse-display 0.11.0

Procedural macro to implement Display and FromStr using common settings.
Documentation
1
2
3
4
5
6
7
8
9
10
use parse_display::Display;

#[derive(Display)]
enum X {
    #[display("{0}")]
    A(#[display(with = unknown)] u32),
    B,
}

fn main() {}