macro_rules! is_format {
($s:literal) => { ... };
($($s:tt)+) => { ... };
}Expand description
Tests whether a string literal appears to contain a formatting placeholder.
A literal returns true only when it contains at least one { and at least
one }. Every other token pattern returns false, so the result is a
heuristic rather than syntax validation.