Enum icu_experimental::compactdecimal::provider::Count
source · #[repr(u8)]pub enum Count {
Zero = 0,
One = 1,
Two = 2,
Few = 3,
Many = 4,
Other = 5,
Explicit1 = 6,
}
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 = 0
The CLDR keyword zero
.
One = 1
The CLDR keyword one
.
Two = 2
The CLDR keyword two
.
Few = 3
The CLDR keyword few
.
Many = 4
The CLDR keyword many
.
Other = 5
The CLDR keyword other
.
Explicit1 = 6
The explicit 1 case, see https://www.unicode.org/reports/tr35/tr35-numbers.html#Explicit_0_1_rules.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Count
impl<'de> Deserialize<'de> for Count
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Count
impl Ord for Count
source§impl PartialOrd for Count
impl PartialOrd for Count
source§impl<'a> ZeroMapKV<'a> for Count
impl<'a> ZeroMapKV<'a> for Count
impl Copy for Count
impl Eq for Count
impl StructuralPartialEq for Count
Auto Trait Implementations§
impl Freeze for Count
impl RefUnwindSafe for Count
impl Send for Count
impl Sync for Count
impl Unpin for Count
impl UnwindSafe for Count
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more