Alternative to the builtin format_args! macro
Rust standard library has format_args! macro that lets
you combine format string and its arguments into the Arguments structure
without allocations in cost of directly referencing parts of format string,
so the result must be used immediately (to satisfy borrow checker).
This crates offers pformat_args! macro that returns impl Display instance
that can be used just like any normal structure holding provided format arguments.
= { = "https://github.com/egor-vaskon/pformat_macro" }
How to use
The usage is almost the same as format_args! except that all {}
placeholders must be empty.
use pformat_args;