pub enum ShapefileError {
Input(String),
UnsupportedGeometry(String),
MixedGeometry {
first: String,
other: String,
index: usize,
},
Feature {
index: usize,
message: String,
},
GeometryCollection {
index: usize,
},
Empty,
FieldName(String),
Shape(Error),
Dbf(Error),
}Expand description
Every failure mode the writer can produce, with enough context to point a caller at the offending feature.
Variants§
Input(String)
UnsupportedGeometry(String)
MixedGeometry
Feature
GeometryCollection
Empty
FieldName(String)
Shape(Error)
Dbf(Error)
Trait Implementations§
Source§impl Debug for ShapefileError
impl Debug for ShapefileError
Source§impl Display for ShapefileError
impl Display for ShapefileError
Source§impl Error for ShapefileError
impl Error for ShapefileError
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 From<Error> for ShapefileError
impl From<Error> for ShapefileError
Source§impl From<Error> for ShapefileError
impl From<Error> for ShapefileError
Source§impl From<ShapefileError> for JsValue
impl From<ShapefileError> for JsValue
Source§fn from(err: ShapefileError) -> Self
fn from(err: ShapefileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ShapefileError
impl !UnwindSafe for ShapefileError
impl Freeze for ShapefileError
impl Send for ShapefileError
impl Sync for ShapefileError
impl Unpin for ShapefileError
impl UnsafeUnpin for ShapefileError
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