pub enum TimeRangeValidationError {
NonFiniteBound {
bound: &'static str,
instant: Instant,
},
ScaleMismatch {
start: Instant,
end: Instant,
},
OutOfOrder {
start: Instant,
end: Instant,
},
}Expand description
Shared validation errors for TimeRange.
Variants§
NonFiniteBound
A required bound contains a non-finite Julian day.
ScaleMismatch
The lower and upper bounds use different time scales.
OutOfOrder
The upper bound precedes the lower bound.
Implementations§
Source§impl TimeRangeValidationError
impl TimeRangeValidationError
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Returns a compact one-line rendering of the range validation failure.
Trait Implementations§
Source§impl Clone for TimeRangeValidationError
impl Clone for TimeRangeValidationError
Source§fn clone(&self) -> TimeRangeValidationError
fn clone(&self) -> TimeRangeValidationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeRangeValidationError
Source§impl Debug for TimeRangeValidationError
impl Debug for TimeRangeValidationError
Source§impl Display for TimeRangeValidationError
impl Display for TimeRangeValidationError
Source§impl Error for TimeRangeValidationError
impl Error for TimeRangeValidationError
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 TimeRangeValidationError
impl PartialEq for TimeRangeValidationError
impl StructuralPartialEq for TimeRangeValidationError
Auto Trait Implementations§
impl Freeze for TimeRangeValidationError
impl RefUnwindSafe for TimeRangeValidationError
impl Send for TimeRangeValidationError
impl Sync for TimeRangeValidationError
impl Unpin for TimeRangeValidationError
impl UnsafeUnpin for TimeRangeValidationError
impl UnwindSafe for TimeRangeValidationError
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