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

consists of year, month and day of month

Fields of YMD

consists of year, week and day of week

Fields of Week

consists of year and day of year

Fields of Ordinal

Trait Implementations

impl Eq for Date
[src]

impl PartialEq for Date
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Date
[src]

[src]

Formats the value using the given formatter.

impl Copy for Date
[src]

impl Clone for Date
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Date
[src]

[src]

Returns the "default value" for a type. Read more