pub enum CoordinatesError {
LatitudeInvalid,
LongitudeInvalid,
}Expand description
Error returned for invalid Coordinates
Variants§
LatitudeInvalid
The latitude is not within -90…90. inclusive
LongitudeInvalid
The longitude is not within -180…180. inclusive
Implementations§
Source§impl CoordinatesError
impl CoordinatesError
Sourcepub fn message(&self) -> String
pub fn message(&self) -> String
Message to display for the CoordinatesError
Trait Implementations§
Source§impl Clone for CoordinatesError
impl Clone for CoordinatesError
Source§fn clone(&self) -> CoordinatesError
fn clone(&self) -> CoordinatesError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoordinatesError
impl Debug for CoordinatesError
Source§impl<'de> Deserialize<'de> for CoordinatesError
impl<'de> Deserialize<'de> for CoordinatesError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CoordinatesError
impl PartialEq for CoordinatesError
Source§impl Serialize for CoordinatesError
impl Serialize for CoordinatesError
impl Copy for CoordinatesError
impl Eq for CoordinatesError
impl StructuralPartialEq for CoordinatesError
Auto Trait Implementations§
impl Freeze for CoordinatesError
impl RefUnwindSafe for CoordinatesError
impl Send for CoordinatesError
impl Sync for CoordinatesError
impl Unpin for CoordinatesError
impl UnwindSafe for CoordinatesError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more