pub struct PrettyDurationLabels {
pub year: &'static str,
pub month: &'static str,
pub day: &'static str,
pub hour: &'static str,
pub minute: &'static str,
pub second: &'static str,
pub millisecond: &'static str,
}Expand description
Structure that hold the text to display for the singular and plural form of each unit
Fields§
§year: &'static str§month: &'static str§day: &'static str§hour: &'static str§minute: &'static str§second: &'static str§millisecond: &'static strTrait Implementations§
Source§impl Clone for PrettyDurationLabels
impl Clone for PrettyDurationLabels
Source§fn clone(&self) -> PrettyDurationLabels
fn clone(&self) -> PrettyDurationLabels
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PrettyDurationLabels
impl RefUnwindSafe for PrettyDurationLabels
impl Send for PrettyDurationLabels
impl Sync for PrettyDurationLabels
impl Unpin for PrettyDurationLabels
impl UnwindSafe for PrettyDurationLabels
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