Macro runtime_fmt::rt_format_args
[−]
[src]
macro_rules! rt_format_args { (@[$spec:expr] [$($args:tt)*] $name:tt = $e:expr, $($rest:tt)*) => { ... }; (@[$spec:expr] [$($args:tt)*] $name:tt = $e:expr) => { ... }; (@[$spec:expr] [$($args:tt)*] $e:expr, $($rest:tt)*) => { ... }; (@[$spec:expr] [$($args:tt)*] $e:expr) => { ... }; (@[$spec:expr] [$($args:tt)*]) => { ... }; ($spec:expr, $($rest:tt)*) => { ... }; ($spec:expr) => { ... }; }
The core macro for runtime formatting.
This macro produces a value of type Result<FormatBuf, Error>
. Invalid
format strings are indicated by an error result. The resulting value can
be converted to a std::fmt::Arguments
via the with()
method.
The syntax accepted is the same as format_args!
. See the module-level
docs for more detail.