pub enum MyError {
IO(Error),
Time(Error),
Text(ParseError<LineCol>),
Json(Error),
Geos(Error),
PrecisionLoss(Cow<'static, str>),
CRS(ProjCreateError),
Proj(ProjError),
Runtime(Cow<'static, str>),
}Expand description
Variants of error raised from this library.
Variants§
IO(Error)
Input/Output realted error.
Time(Error)
Date, time + timestamp (jiff) parsing error.
Text(ParseError<LineCol>)
Text-encoding (peg) related error.
Json(Error)
JSON-encoding (serde) related error
Geos(Error)
Geometry (geos) related error.
PrecisionLoss(Cow<'static, str>)
Coordinate conversion results in loss of precision.
CRS(ProjCreateError)
CRS construction error.
Proj(ProjError)
Coordinate transformation (proj) related error.
Runtime(Cow<'static, str>)
Runtime error.
Trait Implementations§
Source§impl Error for MyError
impl Error for MyError
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<ProjCreateError> for MyError
impl From<ProjCreateError> for MyError
Source§fn from(source: ProjCreateError) -> Self
fn from(source: ProjCreateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MyError
impl !RefUnwindSafe for MyError
impl Send for MyError
impl Sync for MyError
impl Unpin for MyError
impl !UnwindSafe for MyError
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