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 for PdsDateFormatter
impl PartialEq 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 ==
.impl Copy for PdsDateFormatter
impl Eq for PdsDateFormatter
impl StructuralPartialEq for PdsDateFormatter
Auto Trait Implementations§
impl Freeze for PdsDateFormatter
impl RefUnwindSafe for PdsDateFormatter
impl Send for PdsDateFormatter
impl Sync for PdsDateFormatter
impl Unpin for PdsDateFormatter
impl UnwindSafe for PdsDateFormatter
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