Macro enso_flexer::prelude::iformat [−]
macro_rules! iformat { #[proc_macro_hack(fake_call_site)] => { ... }; }
Expand description
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})