pub enum Count {
Num(i64),
Word(String),
}Expand description
A count used to decide between singular and plural forms.
Numbers and words are both accepted, mirroring the Python library: 1,
"one", "a", "each" and so on count as singular, anything else as
plural.
Variants§
Trait Implementations§
impl Eq for Count
impl StructuralPartialEq for Count
Auto Trait Implementations§
impl Freeze for Count
impl RefUnwindSafe for Count
impl Send for Count
impl Sync for Count
impl Unpin for Count
impl UnsafeUnpin for Count
impl UnwindSafe for Count
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