Struct icu_plurals::provider::PluralRuleStringsV1[][src]

pub struct PluralRuleStringsV1<'s> {
    pub zero: Option<Cow<'s, str>>,
    pub one: Option<Cow<'s, str>>,
    pub two: Option<Cow<'s, str>>,
    pub few: Option<Cow<'s, str>>,
    pub many: Option<Cow<'s, str>>,
}

Plural rule strings conforming to UTS 35 syntax. Includes separate fields for five of the six standard plural forms. If none of the rules match, the “other” category is assumed.

More information: https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules

Fields

zero: Option<Cow<'s, str>>one: Option<Cow<'s, str>>two: Option<Cow<'s, str>>few: Option<Cow<'s, str>>many: Option<Cow<'s, str>>

Trait Implementations

impl<'s> Clone for PluralRuleStringsV1<'s>[src]

impl<'s> Debug for PluralRuleStringsV1<'s>[src]

impl<'s> Default for PluralRuleStringsV1<'s>[src]

impl<'de, 's> Deserialize<'de> for PluralRuleStringsV1<'s>[src]

impl<'s> PartialEq<PluralRuleStringsV1<'s>> for PluralRuleStringsV1<'s>[src]

impl<'s> Serialize for PluralRuleStringsV1<'s>[src]

impl<'s> StructuralPartialEq for PluralRuleStringsV1<'s>[src]

Auto Trait Implementations

impl<'s> RefUnwindSafe for PluralRuleStringsV1<'s>

impl<'s> Send for PluralRuleStringsV1<'s>

impl<'s> Sync for PluralRuleStringsV1<'s>

impl<'s> Unpin for PluralRuleStringsV1<'s>

impl<'s> UnwindSafe for PluralRuleStringsV1<'s>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> ErasedDataStruct for T where
    T: Clone + Debug + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.