[−][src]Macro ifmt::iformat
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})