Enum message_format::PluralCategory [] [src]

pub enum PluralCategory {
    Zero,
    One,
    Two,
    Few,
    Many,
    Other,
}

The set of grammatical numbers that we support.

These are used by the ICU PluralFormat. See also english_cardinal_classifier.

Variants

Zero

Value is 0.

One

Value is 1. In English, this corresponds to the "singular" form.

Two

Value is 2.

Few

Value is a few, more than 2, but less than many. The exact range depends upon the locale.

Many

Value is many, more than few. The exact range depends upon the locale.

Other

Not one of the others. In English, this is used for the "plural" form.

Trait Implementations

Derived Implementations

impl PartialEq for PluralCategory

fn eq(&self, __arg_0: &PluralCategory) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

impl Debug for PluralCategory

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Copy for PluralCategory

impl Clone for PluralCategory

fn clone(&self) -> PluralCategory

1.0.0fn clone_from(&mut self, source: &Self)