pub struct FormattedShortdate { /* private fields */ }Expand description
A formatted short date that implements Display.
Implementations§
Source§impl FormattedShortdate
impl FormattedShortdate
Sourcepub fn new(datetime: DateTime<Local>, config: &ShortdateFormatConfig) -> Self
pub fn new(datetime: DateTime<Local>, config: &ShortdateFormatConfig) -> Self
Format a datetime using config-driven relative date buckets.
Dates from today use the today format, dates within the last week use
this_week, dates within the same year use this_month, and older dates
use the older format.
Trait Implementations§
Source§impl Clone for FormattedShortdate
impl Clone for FormattedShortdate
Source§fn clone(&self) -> FormattedShortdate
fn clone(&self) -> FormattedShortdate
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 moreSource§impl Debug for FormattedShortdate
impl Debug for FormattedShortdate
Auto Trait Implementations§
impl Freeze for FormattedShortdate
impl RefUnwindSafe for FormattedShortdate
impl Send for FormattedShortdate
impl Sync for FormattedShortdate
impl Unpin for FormattedShortdate
impl UnsafeUnpin for FormattedShortdate
impl UnwindSafe for FormattedShortdate
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