pub enum NaiveDatetimeIterError {
ZeroStep,
InvalidRange {
start: NaiveDateTime,
end: NaiveDateTime,
},
}
Expand description
Errors that can occur when creating a datetime iterator
Variants§
ZeroStep
Returned when step duration is zero
InvalidRange
Returned when start datetime is after end datetime for positive step
Trait Implementations§
Source§impl Debug for NaiveDatetimeIterError
impl Debug for NaiveDatetimeIterError
Source§impl Display for NaiveDatetimeIterError
impl Display for NaiveDatetimeIterError
Source§impl Error for NaiveDatetimeIterError
impl Error for NaiveDatetimeIterError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for NaiveDatetimeIterError
impl RefUnwindSafe for NaiveDatetimeIterError
impl Send for NaiveDatetimeIterError
impl Sync for NaiveDatetimeIterError
impl Unpin for NaiveDatetimeIterError
impl UnwindSafe for NaiveDatetimeIterError
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