Macro evegfx::format [−][src]
format!() { /* proc-macro */ }
Constructs a Message
value for use with EVE
coprocessor commands that support string formatting.
This macro understands the format syntax just enough to automatically infer the types of any given arguments and thus produce a valid pairing of format string and arguments. However, it achieves that by parsing the format string at compile tLowLevelthe format string must always be a quoted string constant.
The coprocessor's formatter serves a similar purpose as Rust's own
format functionality, but since the actual formatting operation happens
inside the EVE coprocessor we can avoid including the potentially-large
formatting code in memory-constrained systems. The EVE formatter can also
interpolate strings already stored in the EVE RAM, via the %s
verb, which
Rust's own formatter doesn't have direct access to.
Prepare a format string and associated arguments for use with an EVE
coprocessor widget which supports the OPT_FORMAT
option.