#[non_exhaustive]pub enum TimeRangeError {
EndBeforeStart,
}Expand description
Invalid time range.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EndBeforeStart
End precedes start.
Trait Implementations§
Source§impl Clone for TimeRangeError
impl Clone for TimeRangeError
impl Copy for TimeRangeError
Source§impl Debug for TimeRangeError
impl Debug for TimeRangeError
Source§impl Display for TimeRangeError
impl Display for TimeRangeError
impl Eq for TimeRangeError
Source§impl Error for TimeRangeError
impl Error for TimeRangeError
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()
Source§impl PartialEq for TimeRangeError
impl PartialEq for TimeRangeError
impl StructuralPartialEq for TimeRangeError
Auto Trait Implementations§
impl Freeze for TimeRangeError
impl RefUnwindSafe for TimeRangeError
impl Send for TimeRangeError
impl Sync for TimeRangeError
impl Unpin for TimeRangeError
impl UnsafeUnpin for TimeRangeError
impl UnwindSafe for TimeRangeError
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