const_format_args in std - Rust (original) (raw)
Macro const_format_args
macro_rules! const_format_args {
($fmt:expr) => { ... };
($fmt:expr, <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">(</mo></mrow><annotation encoding="application/x-tex">(</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mopen">(</span></span></span></span>args:tt)*) => { ... };
}
🔬This is a nightly-only experimental API. (const_format_args
)
Expand description
Same as format_args, but can be used in some const contexts.
This macro is used by the panic macros for the const_panic
feature.
This macro will be removed once format_args
is allowed in const contexts.