pub enum GeomError {
InvalidPolygon(String),
InvalidInterval {
lower: i64,
upper: i64,
},
SelfIntersectingPolygon,
DegeneratePolygon {
vertex_count: usize,
},
NumericalError(String),
InvalidPoint(String),
}Expand description
Error type for geometric operations
Variants§
InvalidPolygon(String)
Invalid polygon construction
InvalidInterval
Invalid interval (lower bound > upper bound)
SelfIntersectingPolygon
Self-intersecting polygon
DegeneratePolygon
Degenerate polygon (too few vertices)
NumericalError(String)
Numerical stability issue
InvalidPoint(String)
Invalid point
Trait Implementations§
Source§impl Error for GeomError
impl Error for GeomError
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 Eq for GeomError
impl StructuralPartialEq for GeomError
Auto Trait Implementations§
impl Freeze for GeomError
impl RefUnwindSafe for GeomError
impl Send for GeomError
impl Sync for GeomError
impl Unpin for GeomError
impl UnsafeUnpin for GeomError
impl UnwindSafe for GeomError
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