#[non_exhaustive]pub enum PluralKind {
Cardinal,
Ordinal,
Select,
Other,
}Expand description
The kind of a plural group. Serialises lowercase; a kind this release does not know reads as other.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cardinal
Cardinal plural (plural, gettext msgstr[N], xcstrings variations.plural).
Ordinal
Ordinal plural (ICU selectordinal).
Select
ICU select (a key such as female, not a number).
Other
A kind written by a newer release.
Trait Implementations§
Source§impl Clone for PluralKind
impl Clone for PluralKind
impl Copy for PluralKind
Source§impl Debug for PluralKind
impl Debug for PluralKind
Source§impl<'de> Deserialize<'de> for PluralKind
impl<'de> Deserialize<'de> for PluralKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PluralKind
Source§impl Hash for PluralKind
impl Hash for PluralKind
Source§impl PartialEq for PluralKind
impl PartialEq for PluralKind
Source§impl Serialize for PluralKind
impl Serialize for PluralKind
impl StructuralPartialEq for PluralKind
Auto Trait Implementations§
impl Forget for PluralKind
impl Freeze for PluralKind
impl Move for PluralKind
impl RefUnwindSafe for PluralKind
impl Send for PluralKind
impl Sync for PluralKind
impl Unpin for PluralKind
impl UnsafeUnpin for PluralKind
impl UnwindSafe for PluralKind
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