Enum rust_version::ParseDateError [] [src]

pub enum ParseDateError<'a> {
    Format(&'a [u8]),
    Number(&'a [u8]),
    OverflowYear(&'a [u8]),
    OverflowMonthDay(&'a [u8]),
    MonthDay {
        month: u8,
        day: u8,
    },
    LeapDay {
        year: u32,
    },
    BeforeRust {
        year: u32,
        month: u8,
        day: u8,
    },
}

Error encountered when parsing a Date.

Variants

The string wasn't in the format "Y-M-D".

The given number was not valid.

The given number was too large to be a proper year.

The given number was too large to be a proper month or day.

The given month/day pair will never occur.

Fields of MonthDay

February 29th doesn't exist on the given year.

Fields of LeapDay

The given date occurred before the first release of Rust.

It might not even be an actual date.

Fields of BeforeRust

Trait Implementations

impl<'a> Clone for ParseDateError<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for ParseDateError<'a>
[src]

impl<'a> Eq for ParseDateError<'a>
[src]

impl<'a> PartialEq for ParseDateError<'a>
[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<'a> Hash for ParseDateError<'a>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Debug for ParseDateError<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Display for ParseDateError<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Error for ParseDateError<'a>
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more