Macro display_as::format_as

source ·
format_as!() { /* proc-macro */ }
Expand description

Use the given template to create a FormattedString.

You can think of this as being kind of like format! on strange drugs. We return a FormattedString instaed of a String so that You can store the output and use it later in another template without having the contents escaped.

To obtain a String, use the FormattedString::into_string method. Use the given template to create a string.

You can think of this as being kind of like format! on strange drugs.