Enum badi_date::BadiDateError
source · 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