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<Count, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Count, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 PartialOrd for Count
impl PartialOrd for Count
source§impl Serialize for Count
impl Serialize for Count
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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