pub enum TrailgenError {
InvalidGeometry(String),
InvalidData(String),
ShapeMismatch {
actual: RouteShape,
expected: RouteShape,
},
OneWayReversal,
TurnRestrictedReversal,
UnrepresentableReversal,
UnsupportedFormat(String),
Json(Error),
Xml(String),
}Variants§
InvalidGeometry(String)
InvalidData(String)
ShapeMismatch
OneWayReversal
TurnRestrictedReversal
UnrepresentableReversal
UnsupportedFormat(String)
Json(Error)
Xml(String)
Trait Implementations§
Source§impl Debug for TrailgenError
impl Debug for TrailgenError
Source§impl Display for TrailgenError
impl Display for TrailgenError
Source§impl Error for TrailgenError
impl Error for TrailgenError
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 !RefUnwindSafe for TrailgenError
impl !UnwindSafe for TrailgenError
impl Freeze for TrailgenError
impl Send for TrailgenError
impl Sync for TrailgenError
impl Unpin for TrailgenError
impl UnsafeUnpin for TrailgenError
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