pub struct FormatString { /* private fields */ }Expand description
A format string parser and formatter for date/time objects
Implementations§
Source§impl FormatString
impl FormatString
Sourcepub fn format_datetime(&self, dt: &DateTime) -> String
pub fn format_datetime(&self, dt: &DateTime) -> String
Format a DateTime using this format string
Sourcepub fn format_date(&self, date: &Date) -> String
pub fn format_date(&self, date: &Date) -> String
Format a Date using this format string
Sourcepub fn format_time(&self, time: &Time) -> String
pub fn format_time(&self, time: &Time) -> String
Format a Time using this format string
Trait Implementations§
Source§impl Clone for FormatString
impl Clone for FormatString
Source§fn clone(&self) -> FormatString
fn clone(&self) -> FormatString
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 FormatString
impl RefUnwindSafe for FormatString
impl Send for FormatString
impl Sync for FormatString
impl Unpin for FormatString
impl UnwindSafe for FormatString
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