Enum icu::experimental::dimension::provider::units_essentials::CompoundCount
source · #[repr(u8)]pub enum CompoundCount {
Zero = 0,
One = 1,
Two = 2,
Few = 3,
Many = 4,
Other = 5,
}
Expand description
A CLDR plural keyword, or the explicit value 1. See https://www.unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules. // TODO??
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
.
Trait Implementations§
source§impl AsULE for CompoundCount
impl AsULE for CompoundCount
source§type ULE = CompoundCountULE
type ULE = CompoundCountULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> <CompoundCount as AsULE>::ULE
fn to_unaligned(self) -> <CompoundCount as AsULE>::ULE
source§fn from_unaligned(other: <CompoundCount as AsULE>::ULE) -> CompoundCount
fn from_unaligned(other: <CompoundCount as AsULE>::ULE) -> CompoundCount
source§impl Bake for CompoundCount
impl Bake for CompoundCount
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for CompoundCount
impl BakeSize for CompoundCount
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for CompoundCount
impl Clone for CompoundCount
source§fn clone(&self) -> CompoundCount
fn clone(&self) -> CompoundCount
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CompoundCount
impl Debug for CompoundCount
source§impl<'de> Deserialize<'de> for CompoundCount
impl<'de> Deserialize<'de> for CompoundCount
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompoundCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CompoundCount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<u8> for CompoundCount
impl From<u8> for CompoundCount
source§fn from(val: u8) -> CompoundCount
fn from(val: u8) -> CompoundCount
Converts to this type from the input type.
source§impl Ord for CompoundCount
impl Ord for CompoundCount
source§fn cmp(&self, other: &CompoundCount) -> Ordering
fn cmp(&self, other: &CompoundCount) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CompoundCount
impl PartialEq for CompoundCount
source§impl PartialOrd for CompoundCount
impl PartialOrd for CompoundCount
source§impl Serialize for CompoundCount
impl Serialize for CompoundCount
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 CompoundCount
impl<'a> ZeroMapKV<'a> for CompoundCount
source§type Container = ZeroVec<'a, CompoundCount>
type Container = ZeroVec<'a, CompoundCount>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<CompoundCount>
source§type GetType = CompoundCountULE
type GetType = CompoundCountULE
The type produced by
Container::get()
Read moresource§type OwnedType = CompoundCount
type OwnedType = CompoundCount
The type produced by
Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read moreimpl Copy for CompoundCount
impl Eq for CompoundCount
impl StructuralPartialEq for CompoundCount
Auto Trait Implementations§
impl Freeze for CompoundCount
impl RefUnwindSafe for CompoundCount
impl Send for CompoundCount
impl Sync for CompoundCount
impl Unpin for CompoundCount
impl UnwindSafe for CompoundCount
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