pub enum GeoError {
MissingType,
UnsupportedType(String),
MissingGeometry,
MalformedGeometry(String),
}Expand description
The reasons a map cannot be read.
The errors say what is wrong with the data, because the data is the one thing the developer can fix: a map that is not drawn is never a rendering problem.
Variants§
MissingType
The document has no type field.
UnsupportedType(String)
The document is of a kind this crate does not read.
MissingGeometry
A feature has no geometry.
MalformedGeometry(String)
The geometry cannot be read.
Trait Implementations§
Source§impl Error for GeoError
Implements impl std::error::Error for GeoError {}.
impl Error for GeoError
Implements impl std::error::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()
impl StructuralPartialEq for GeoError
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