Trait FluentDisplay

Source
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§

Source

fn fluent_fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.

Implementors§