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
11
12
13
use parse_display::FromStr;

#[derive(FromStr)]
#[display("{a}")]
#[from_str(default_fields(b))]
struct X {
    a: u8,
    b: u8,
}

compile_error!("force trybuild to compare warnings");

fn main() {}