pub enum GeoError {
LongitudeOutOfRange {
value: f32,
},
LatitudeOutOfRange {
value: f32,
},
DegenerateBbox {
axis: &'static str,
min: f32,
max: f32,
},
EmptyGeometry,
NonFiniteCoordinate {
value: f32,
},
}Expand description
Errors from constructing spatial primitives.
Variants§
LongitudeOutOfRange
Returned when a longitude is outside [-180, 180].
LatitudeOutOfRange
Returned when a latitude is outside [-90, 90].
DegenerateBbox
Returned when a bounding box has min >= max on an axis.
Fields
EmptyGeometry
Returned when WKB geometry bytes are empty.
NonFiniteCoordinate
Returned when a coordinate is NaN or infinite.
Trait Implementations§
Source§impl Error for GeoError
impl Error for GeoError
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()
Auto Trait Implementations§
impl Freeze for GeoError
impl RefUnwindSafe for GeoError
impl Send for GeoError
impl Sync for GeoError
impl Unpin for GeoError
impl UnsafeUnpin for GeoError
impl UnwindSafe for GeoError
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