Enum icu::compactdecimal::provider::Count
source · pub enum Count {
Zero,
One,
Two,
Few,
Many,
Other,
Explicit1,
}
Expand description
A CLDR plural keyword, or the explicit value 1. See https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules.
Variants§
Zero
The CLDR keyword zero
.
One
The CLDR keyword one
.
Two
The CLDR keyword two
.
Few
The CLDR keyword few
.
Many
The CLDR keyword many
.
Other
The CLDR keyword other
.
Explicit1
The explicit 1 case, see https://www.unicode.org/reports/tr35/tr35-numbers.html#Explicit_0_1_rules.
Trait Implementations§
source§impl From<PluralCategory> for Count
impl From<PluralCategory> for Count
source§fn from(other: PluralCategory) -> Count
fn from(other: PluralCategory) -> Count
Converts to this type from the input type.
source§impl Ord for Count
impl Ord for Count
source§impl PartialEq<Count> for Count
impl PartialEq<Count> for Count
source§impl PartialOrd<Count> for Count
impl PartialOrd<Count> for Count
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more