[][src]Macro ifmt::iformat

macro_rules! iformat {
    #[proc_macro_hack(fake_call_site)] => { ... };
}

Creates a String by interpolating inlined expressions. Takes one argument, which must be a string literal.

Works by expanding to format!:

iformat!("two plus two: {2 + 2}") -> format!("two plus two: {}", {2 + 2})

iformat!("foo: {foo:?}") -> format!("foo: {:?}", {foo})