pub struct Counted<'a, T> {
pub count: T,
pub one: &'a str,
pub many: &'a str,
}Expand description
Displays a correctly pluralized count of something, for example 3 users.
Fields§
§count: T§one: &'a str§many: &'a strTrait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Counted<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Counted<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Counted<'a, T>where
T: Send,
impl<'a, T> Sync for Counted<'a, T>where
T: Sync,
impl<'a, T> Unpin for Counted<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Counted<'a, T>where
T: UnwindSafe,
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