fmt-tools 0.1.0

Provides various tools for creating objects that implement `Debug` and `Display` traits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[test]
fn test_format_args_owned() {
    let fmt = {
        let value_1 = vec![2];
        let value_2 = Box::new('A');
        let value_3 = Box::new(5);

        fmt_tools::format_args_owned!("{:?}, {named}, {value_3}", value_1, named = value_2)
    };

    assert_eq!(format!("{fmt:?}"), "[2], A, 5");
    assert_eq!(format!("{fmt}"), "[2], A, 5");
}