pub enum BadiDateError {
DayInvalid(BadiMonth, u16, u16),
MonthInvalid(BadiMonth),
DateNotSupported,
}Expand description
Error returned from trying to construct a BadiDateLike with invalid parameters
Variants§
DayInvalid(BadiMonth, u16, u16)
The day number passed in for a given BadiMonth is invalid for that month
MonthInvalid(BadiMonth)
The BadiMonth itself is invalid (due to an invalid day number)
DateNotSupported
The date passed in is not in the supported range
Implementations§
Source§impl BadiDateError
impl BadiDateError
Sourcepub fn message(&self) -> String
pub fn message(&self) -> String
Message associated with the BadiDateError
Trait Implementations§
Source§impl Debug for BadiDateError
impl Debug for BadiDateError
Auto Trait Implementations§
impl Freeze for BadiDateError
impl RefUnwindSafe for BadiDateError
impl Send for BadiDateError
impl Sync for BadiDateError
impl Unpin for BadiDateError
impl UnwindSafe for BadiDateError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more