pub enum PluralCategory {
Zero,
One,
Two,
Few,
Many,
Other,
}
Expand description
The set of grammatical numbers that we support.
Variants§
Zero
Value is 0
.
One
Value is 1
. In English, this corresponds to the “singular” form.
Two
Value is 2
.
Few
Value is a few, more than 2
, but less than many
. The exact
range depends upon the locale.
Many
Value is many, more than few
. The exact range depends
upon the locale.
Other
Not one of the others. In English, this is used for the “plural” form.
Trait Implementations§
Source§impl Clone for PluralCategory
impl Clone for PluralCategory
Source§fn clone(&self) -> PluralCategory
fn clone(&self) -> PluralCategory
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 PluralCategory
impl Debug for PluralCategory
Source§impl PartialEq for PluralCategory
impl PartialEq for PluralCategory
impl Copy for PluralCategory
impl StructuralPartialEq for PluralCategory
Auto Trait Implementations§
impl Freeze for PluralCategory
impl RefUnwindSafe for PluralCategory
impl Send for PluralCategory
impl Sync for PluralCategory
impl Unpin for PluralCategory
impl UnwindSafe for PluralCategory
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