pub trait FluentDisplay {
// Required method
fn fluent_fmt(&self, f: &mut Formatter<'_>) -> Result;
}Expand description
A trait for types that can be displayed in a Fluent message.
This is a counterpart to std::fmt::Display, but specifically for generating
strings that are meant to be used with Fluent. The derive macro for es-fluent
can implement this trait for your types.
Required Methods§
Sourcefn fluent_fmt(&self, f: &mut Formatter<'_>) -> Result
fn fluent_fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter.