pub enum CoordinateValidationError {
NonFiniteValue {
coordinate: &'static str,
field: &'static str,
value: f64,
},
LatitudeOutOfRange {
coordinate: &'static str,
field: &'static str,
value: f64,
},
RightAscensionOutOfRange {
coordinate: &'static str,
field: &'static str,
value: f64,
},
NegativeDistance {
coordinate: &'static str,
value: f64,
},
}Expand description
Validation errors for shared coordinate samples.
Variants§
NonFiniteValue
A stored numeric field was not finite.
Fields
LatitudeOutOfRange
A stored latitude-like field fell outside the expected closed range.
Fields
RightAscensionOutOfRange
A stored right-ascension field fell outside the expected half-open range.
Fields
NegativeDistance
A stored distance channel was negative.
Implementations§
Source§impl CoordinateValidationError
impl CoordinateValidationError
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Returns a compact one-line rendering of the validation failure.
Trait Implementations§
Source§impl Clone for CoordinateValidationError
impl Clone for CoordinateValidationError
Source§fn clone(&self) -> CoordinateValidationError
fn clone(&self) -> CoordinateValidationError
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 CoordinateValidationError
Source§impl Debug for CoordinateValidationError
impl Debug for CoordinateValidationError
Source§impl Display for CoordinateValidationError
impl Display for CoordinateValidationError
Source§impl Error for CoordinateValidationError
impl Error for CoordinateValidationError
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()
impl StructuralPartialEq for CoordinateValidationError
Auto Trait Implementations§
impl Freeze for CoordinateValidationError
impl RefUnwindSafe for CoordinateValidationError
impl Send for CoordinateValidationError
impl Sync for CoordinateValidationError
impl Unpin for CoordinateValidationError
impl UnsafeUnpin for CoordinateValidationError
impl UnwindSafe for CoordinateValidationError
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