Skip to main content

Module formatting

Module formatting 

Source

Structs§

EagerDiagMessageBuilder
FluentArgs
Fluent messages can use arguments in order to programmatically add values to a translated string. For instance, in a localized application you may wish to display a user’s email count. This could be done with the following message.

Traits§

DiagMessageAddArg

Functions§

format_diag_message
Convert a DiagMessage to a string
format_diag_messages
Convert DiagMessages to a string
format_fluent_str 🔒
to_fluent_args 🔒
Convert diagnostic arguments (a rustc internal type that exists to implement Encodable/Decodable) into FluentArgs which is necessary to perform formatting.