Trait message_format::MessagePart
[−]
[src]
pub trait MessagePart: Debug {
fn apply_format<'f>(&self, ctx: &Context, stream: &mut Write, args: Option<&Args<'f>>) -> Result;
}Part of a message. May be something that requires formatting a value or just plain text.
Required Methods
fn apply_format<'f>(&self, ctx: &Context, stream: &mut Write, args: Option<&Args<'f>>) -> Result
Format this message part.
Implementors
impl MessagePart for PlaceholderFormatimpl MessagePart for PlainTextimpl MessagePart for PluralFormatimpl MessagePart for SelectFormatimpl MessagePart for SimpleFormat