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 Eq for Date
[src]
impl PartialEq for Date
[src]
fn eq(&self, __arg_0: &Date) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Date) -> bool
[src]
This method tests for !=
.
impl Debug for Date
[src]
impl Copy for Date
[src]
impl Clone for Date
[src]
fn clone(&self) -> Date
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more