Closed Kijewski closed 2 years ago
This makes it possible to use format_args!() instead of format!(), e.g. to print the debug output of some T without allocating a temporary String.
format_args!()
format!()
Thanks! I implemented Render for tuples earlier to eliminate allocations in simple cases (e.g. div[id = ("post-", post.id)] {}, but this is much more flexible.
Render
div[id = ("post-", post.id)] {}
This makes it possible to use
format_args!()
instead offormat!()
, e.g. to print the debug output of some T without allocating a temporary String.