Enum iso8601::Date [−][src]
pub enum Date { YMD { year: i32, month: u32, day: u32, }, Week { year: i32, ww: u32, d: u32, }, Ordinal { year: i32, ddd: u32, }, }
A date, can hold three different formats.
Variants
YMD
consists of year, month and day of month
Fields of YMD
year: i32 | |
month: u32 | |
day: u32 |
Week
consists of year, week and day of week
Fields of Week
year: i32 | |
ww: u32 | |
d: u32 |
Ordinal
consists of year and day of year
Fields of Ordinal
year: i32 | |
ddd: u32 |
Trait Implementations
impl Display for Date
[src]
impl Display for Date
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Date
[src]
impl Eq for Date
impl PartialEq for Date
[src]
impl PartialEq for Date
fn eq(&self, other: &Date) -> bool
[src]
fn eq(&self, other: &Date) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Date) -> bool
[src]
fn ne(&self, other: &Date) -> bool
This method tests for !=
.
impl Debug for Date
[src]
impl Debug for Date
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Date
[src]
impl Copy for Date
impl Clone for Date
[src]
impl Clone for Date
fn clone(&self) -> Date
[src]
fn clone(&self) -> Date
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Date
[src]
impl Default for Date
impl FromStr for Date
[src]
impl FromStr for Date