pub enum GeoValueError {
Empty {
field: &'static str,
},
InvalidLatitude(f64),
InvalidLongitude(f64),
InvalidRadius(f64),
InvalidRegionCode,
}Expand description
Error returned by geographic presence constructors.
Variants§
Empty
A text field was empty after trimming whitespace.
InvalidLatitude(f64)
Latitude was outside the inclusive -90..=90 range or not finite.
InvalidLongitude(f64)
Longitude was outside the inclusive -180..=180 range or not finite.
InvalidRadius(f64)
Radius was not positive and finite.
InvalidRegionCode
Region code shape was unsupported.
Trait Implementations§
Source§impl Clone for GeoValueError
impl Clone for GeoValueError
Source§fn clone(&self) -> GeoValueError
fn clone(&self) -> GeoValueError
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 moreSource§impl Debug for GeoValueError
impl Debug for GeoValueError
Source§impl Display for GeoValueError
impl Display for GeoValueError
Source§impl Error for GeoValueError
impl Error for GeoValueError
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 GeoValueError
impl PartialEq for GeoValueError
Source§fn eq(&self, other: &GeoValueError) -> bool
fn eq(&self, other: &GeoValueError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GeoValueError
impl StructuralPartialEq for GeoValueError
Auto Trait Implementations§
impl Freeze for GeoValueError
impl RefUnwindSafe for GeoValueError
impl Send for GeoValueError
impl Sync for GeoValueError
impl Unpin for GeoValueError
impl UnsafeUnpin for GeoValueError
impl UnwindSafe for GeoValueError
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