[][src]Enum iso15924::ScriptDateError

pub enum ScriptDateError {
    DayTooLarge(u8),
    DayTooSmall(u8),
    InvalidFormat {
        part: ScriptDateErrorPart,
        source: ParseIntError,
        value: String,
    },
    MissingPart(ScriptDateErrorPart),
    MonthTooLarge(u8),
    MonthTooSmall(u8),
}

Error enum when parsing a ScriptDate fails.

Variants

DayTooLarge(u8)

When a day is provided that is greater than 31.

DayTooSmall(u8)

When a day is provided that is less than 1.

InvalidFormat

The provided date was in the wrong format.

Fields of InvalidFormat

part: ScriptDateErrorPart

The part that couldn't be parsed.

source: ParseIntError

The error itself from the failed parsing.

value: String

The value that couldn't be parsed.

MissingPart(ScriptDateErrorPart)

A part of the date is missing.

The name of the part is provided.

MonthTooLarge(u8)

A month is provided that is greater than 12.

MonthTooSmall(u8)

A month is provided that is less than 1.

Trait Implementations

impl Clone for ScriptDateError[src]

impl Eq for ScriptDateError[src]

impl PartialEq<ScriptDateError> for ScriptDateError[src]

impl Display for ScriptDateError[src]

impl Debug for ScriptDateError[src]

impl Error for ScriptDateError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]