Enum icu::plurals::provider::RawPluralCategory
source · #[repr(u8)]pub enum RawPluralCategory {
Other = 0,
Zero = 1,
One = 2,
Two = 3,
Few = 4,
Many = 5,
}
Expand description
PluralCategory
but serializable as provider data.
🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Variants§
Other = 0
CLDR “other” plural category.
Zero = 1
CLDR “zero” plural category.
One = 2
CLDR “one” plural category.
Two = 3
CLDR “two” plural category.
Few = 4
CLDR “few” plural category.
Many = 5
CLDR “many” plural category.
Trait Implementations§
source§impl AsULE for RawPluralCategory
impl AsULE for RawPluralCategory
source§type ULE = RawPluralCategoryULE
type ULE = RawPluralCategoryULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> <RawPluralCategory as AsULE>::ULE
fn to_unaligned(self) -> <RawPluralCategory as AsULE>::ULE
source§fn from_unaligned(other: <RawPluralCategory as AsULE>::ULE) -> RawPluralCategory
fn from_unaligned(other: <RawPluralCategory as AsULE>::ULE) -> RawPluralCategory
source§impl Bake for RawPluralCategory
impl Bake for RawPluralCategory
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for RawPluralCategory
impl BakeSize for RawPluralCategory
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for RawPluralCategory
impl Clone for RawPluralCategory
source§fn clone(&self) -> RawPluralCategory
fn clone(&self) -> RawPluralCategory
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 RawPluralCategory
impl Debug for RawPluralCategory
source§impl<'de> Deserialize<'de> for RawPluralCategory
impl<'de> Deserialize<'de> for RawPluralCategory
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawPluralCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RawPluralCategory, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<PluralCategory> for RawPluralCategory
impl From<PluralCategory> for RawPluralCategory
source§fn from(value: PluralCategory) -> RawPluralCategory
fn from(value: PluralCategory) -> RawPluralCategory
Converts to this type from the input type.
source§impl From<RawPluralCategory> for PluralCategory
impl From<RawPluralCategory> for PluralCategory
source§fn from(value: RawPluralCategory) -> PluralCategory
fn from(value: RawPluralCategory) -> PluralCategory
Converts to this type from the input type.
source§impl Hash for RawPluralCategory
impl Hash for RawPluralCategory
source§impl Ord for RawPluralCategory
impl Ord for RawPluralCategory
source§fn cmp(&self, other: &RawPluralCategory) -> Ordering
fn cmp(&self, other: &RawPluralCategory) -> 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 RawPluralCategory
impl PartialEq for RawPluralCategory
source§impl PartialOrd for RawPluralCategory
impl PartialOrd for RawPluralCategory
source§impl Serialize for RawPluralCategory
impl Serialize for RawPluralCategory
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 RawPluralCategory
impl<'a> ZeroMapKV<'a> for RawPluralCategory
source§type Container = ZeroVec<'a, RawPluralCategory>
type Container = ZeroVec<'a, RawPluralCategory>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<RawPluralCategory>
source§type GetType = RawPluralCategoryULE
type GetType = RawPluralCategoryULE
The type produced by
Container::get()
Read moresource§type OwnedType = RawPluralCategory
type OwnedType = RawPluralCategory
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 RawPluralCategory
impl Eq for RawPluralCategory
impl StructuralPartialEq for RawPluralCategory
Auto Trait Implementations§
impl Freeze for RawPluralCategory
impl RefUnwindSafe for RawPluralCategory
impl Send for RawPluralCategory
impl Sync for RawPluralCategory
impl Unpin for RawPluralCategory
impl UnwindSafe for RawPluralCategory
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