#[non_exhaustive]pub enum GeoLocationError {
InvalidLatitude(f64),
InvalidLongitude(f64),
InvalidElevation(f64),
}Expand description
An invalid GeoLocation parameter, returned by GeoLocation::new. The
contained value is the rejected input.
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.
InvalidLatitude(f64)
Latitude was NaN or outside [-90.0, 90.0]
InvalidLongitude(f64)
Longitude was NaN or outside [-180.0, 180.0]
InvalidElevation(f64)
Elevation was negative, NaN, or infinite
Trait Implementations§
Source§impl Clone for GeoLocationError
impl Clone for GeoLocationError
Source§fn clone(&self) -> GeoLocationError
fn clone(&self) -> GeoLocationError
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 GeoLocationError
Source§impl Debug for GeoLocationError
impl Debug for GeoLocationError
Source§impl Display for GeoLocationError
impl Display for GeoLocationError
Source§impl Error for GeoLocationError
impl Error for GeoLocationError
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 GeoLocationError
impl PartialEq for GeoLocationError
impl StructuralPartialEq for GeoLocationError
Auto Trait Implementations§
impl Freeze for GeoLocationError
impl RefUnwindSafe for GeoLocationError
impl Send for GeoLocationError
impl Sync for GeoLocationError
impl Unpin for GeoLocationError
impl UnsafeUnpin for GeoLocationError
impl UnwindSafe for GeoLocationError
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