formatx 0.2.4

A macro for formatting non literal strings at runtime
Documentation
use formatx::formatx;
use std::fmt::Display;

#[derive(Debug)]
struct Foo {
    _bar: String,
}

impl Display for Foo {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(f, "{:?}", self)
    }
}

fn main() {
    let foo = Foo {
        _bar: "foo-bar-struct".to_owned(),
    };

    println!("{}", formatx!("{:#?}", foo).unwrap());
}