Struct message_format::icu::ast::PluralFormat
[−]
[src]
pub struct PluralFormat {
// some fields omitted
}Format a value taking pluralization rules into account.
Methods
impl PluralFormat
fn new(variable_name: &str, other: Message) -> Self
Construct a PluralFormat.
fn literal(&mut self, literal: i64, message: Message)
Set the message to be used for a literal value.
fn offset(&mut self, offset: i64)
Apply an offset.
fn zero(&mut self, message: Message)
Set the message for PluralCategory::Zero.
fn one(&mut self, message: Message)
Set the message for PluralCategory::One.
fn two(&mut self, message: Message)
Set the message for PluralCategory::Two.
fn few(&mut self, message: Message)
Set the message for PluralCategory::Few.
fn many(&mut self, message: Message)
Set the message for PluralCategory::Many.