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 Display for Date
[src]

Formats the value using the given formatter. Read more

impl Eq for Date
[src]

impl PartialEq for Date
[src]

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

This method tests for !=.

impl Debug for Date
[src]

Formats the value using the given formatter. Read more

impl Copy for Date
[src]

impl Clone for Date
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Date
[src]

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

impl FromStr for Date
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Date

impl Sync for Date