Enum koyomi::KoyomiError

source ·
pub enum KoyomiError {
    InvalidFormat(String),
    InvalidTerm(DateDate),
    NotEnough,
    NoTomorrow(i32u32u32),
    NoYesterday(i32u32u32),
}
Expand description

クレート単位のエラーバリアント

Variants§

§

InvalidFormat(String)

妥当な日付ではない

§

InvalidTerm(DateDate)

カレンダーの期間指定が妥当ではない

§

NotEnough

カレンダーを生成するための指定が不足している

§

NoTomorrow(i32u32u32)

指定日の翌日は存在しない

§

NoYesterday(i32u32u32)

指定日の前日は存在しない

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.