Re-exportsΒ§
use std::borrow::Cow;πuse rustc_error_messages::DiagArgMap;πuse rustc_error_messages::DiagArgName;πuse rustc_error_messages::IntoDiagArg;πuse rustc_error_messages::langid;πuse rustc_error_messages::register_functions;πuse tracing::debug;πuse tracing::trace;πuse crate::fluent_bundle::FluentResource;πuse crate::DiagArg;πuse crate::DiagMessage;πuse crate::Style;πuse crate::fluent_bundle;π
StructsΒ§
- Eager
Diag Message Builder - Fluent
Args - 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Β§
FunctionsΒ§
- format_
diag_ message - Convert a
DiagMessageto 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) intoFluentArgswhich is necessary to perform formatting.