pub enum DateTimeError {
InvalidYear,
InvalidMonth,
InvalidDay,
InvalidDayOfWeek(u8),
InvalidHour,
InvalidMinute,
InvalidSecond,
}
Expand description
Errors regarding the DateTime
struct.
Variants§
InvalidYear
The DateTime contains an invalid year value. Must be between 0..=4095
.
InvalidMonth
The DateTime contains an invalid month value. Must be between 1..=12
.
InvalidDay
The DateTime contains an invalid day value. Must be between 1..=31
.
InvalidDayOfWeek(u8)
The DateTime contains an invalid day of week. Must be between 0..=6
where 0 is Sunday.
InvalidHour
The DateTime contains an invalid hour value. Must be between 0..=23
.
InvalidMinute
The DateTime contains an invalid minute value. Must be between 0..=59
.
InvalidSecond
The DateTime contains an invalid second value. Must be between 0..=59
.
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)