Enum icu_capi::pluralrules::ffi::ICU4XPluralCategory
source · #[repr(C)]pub enum ICU4XPluralCategory {
Zero = 0,
One = 1,
Two = 2,
Few = 3,
Many = 4,
Other = 5,
}
Variants§
Implementations§
source§impl ICU4XPluralCategory
impl ICU4XPluralCategory
sourcepub fn get_for_cldr_string(s: &DiplomatStr) -> Option<ICU4XPluralCategory>
pub fn get_for_cldr_string(s: &DiplomatStr) -> Option<ICU4XPluralCategory>
Construct from a string in the format specified in TR35
Trait Implementations§
source§impl Clone for ICU4XPluralCategory
impl Clone for ICU4XPluralCategory
source§fn clone(&self) -> ICU4XPluralCategory
fn clone(&self) -> ICU4XPluralCategory
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 From<ICU4XPluralCategory> for PluralCategory
impl From<ICU4XPluralCategory> for PluralCategory
source§fn from(this: ICU4XPluralCategory) -> Self
fn from(this: ICU4XPluralCategory) -> Self
Converts to this type from the input type.
source§impl From<PluralCategory> for ICU4XPluralCategory
impl From<PluralCategory> for ICU4XPluralCategory
source§fn from(other: PluralCategory) -> Self
fn from(other: PluralCategory) -> Self
Converts to this type from the input type.
impl Copy for ICU4XPluralCategory
Auto Trait Implementations§
impl Freeze for ICU4XPluralCategory
impl RefUnwindSafe for ICU4XPluralCategory
impl Send for ICU4XPluralCategory
impl Sync for ICU4XPluralCategory
impl Unpin for ICU4XPluralCategory
impl UnwindSafe for ICU4XPluralCategory
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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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