Enum jomini::common::DateFormat
source · pub enum DateFormat {
Iso8601,
DotShort,
DotWide,
}
Expand description
Controls the output format of a date
Variants§
Iso8601
ISO-8601 format
DotShort
Y.M.D[.H] where month, day, and hour don’t have zero padding
DotWide
Y.M.D[.H] where month, day, and hour are zero padded to two digits
Trait Implementations§
source§impl Clone for DateFormat
impl Clone for DateFormat
source§fn clone(&self) -> DateFormat
fn clone(&self) -> DateFormat
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 DateFormat
impl Debug for DateFormat
source§impl PartialEq<DateFormat> for DateFormat
impl PartialEq<DateFormat> for DateFormat
source§fn eq(&self, other: &DateFormat) -> bool
fn eq(&self, other: &DateFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.