Struct jomini::common::PdsDateFormatter
source · pub struct PdsDateFormatter { /* private fields */ }
Expand description
A temporary object which can be used as an argument to format!
.
Used to avoid a needless intermediate allocation
Implementations§
source§impl PdsDateFormatter
impl PdsDateFormatter
sourcepub fn new(raw: RawDate, format: DateFormat) -> Self
pub fn new(raw: RawDate, format: DateFormat) -> Self
Creates new formatter with a given date and desired format
Trait Implementations§
source§impl Clone for PdsDateFormatter
impl Clone for PdsDateFormatter
source§fn clone(&self) -> PdsDateFormatter
fn clone(&self) -> PdsDateFormatter
Returns a copy 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 PdsDateFormatter
impl Debug for PdsDateFormatter
source§impl Display for PdsDateFormatter
impl Display for PdsDateFormatter
source§impl PartialEq<PdsDateFormatter> for PdsDateFormatter
impl PartialEq<PdsDateFormatter> for PdsDateFormatter
source§fn eq(&self, other: &PdsDateFormatter) -> bool
fn eq(&self, other: &PdsDateFormatter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.