Enum badi_date::CoordinatesError
source · 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§
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