macro_rules! iformat { ($fmt:expr, $($context:tt)*) => { ... }; }
format() as a macro to allow specifying the context directly.
format()
For details on the context syntax see context!.
context!
use interpolator::iformat; assert_eq!( iformat!("{a}, {b:?}", a = 10, b:? = "test").unwrap(), "10, \"test\"" )