#[non_exhaustive]pub enum ObserverLocationValidationError {
NonFiniteLatitude {
value: f64,
},
LatitudeOutOfRange {
value: f64,
},
NonFiniteLongitude {
value: f64,
},
NonFiniteElevation {
value: f64,
},
}Expand description
Validation errors for observer locations.
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.
NonFiniteLatitude
The observer latitude was not finite.
LatitudeOutOfRange
The observer latitude fell outside the valid range.
NonFiniteLongitude
The observer longitude was not finite.
NonFiniteElevation
The observer elevation was not finite.
Implementations§
Source§impl ObserverLocationValidationError
impl ObserverLocationValidationError
Sourcepub fn summary_line(&self) -> String
pub fn summary_line(&self) -> String
Returns a compact one-line rendering of the validation failure.
Trait Implementations§
impl Copy for ObserverLocationValidationError
Source§impl Error for ObserverLocationValidationError
impl Error for ObserverLocationValidationError
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 ObserverLocationValidationError
Auto Trait Implementations§
impl Freeze for ObserverLocationValidationError
impl RefUnwindSafe for ObserverLocationValidationError
impl Send for ObserverLocationValidationError
impl Sync for ObserverLocationValidationError
impl Unpin for ObserverLocationValidationError
impl UnsafeUnpin for ObserverLocationValidationError
impl UnwindSafe for ObserverLocationValidationError
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