pub enum PolygonError {
TooFewVertices,
TooFewDistinctVertices,
NonFiniteVertex(usize),
ZeroArea,
SelfIntersection,
}Variants§
TooFewVertices
Polygon has fewer than 3 vertices.
TooFewDistinctVertices
After deduplication, fewer than 3 distinct vertices remain.
NonFiniteVertex(usize)
A vertex has non-finite coordinates.
ZeroArea
Polygon has zero or near-zero area.
SelfIntersection
Polygon has self-intersections (non-adjacent edges cross).
Trait Implementations§
Source§impl Clone for PolygonError
impl Clone for PolygonError
Source§impl Debug for PolygonError
impl Debug for PolygonError
Source§impl Display for PolygonError
impl Display for PolygonError
Source§impl Error for PolygonError
impl Error for PolygonError
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()
Source§impl PartialEq for PolygonError
impl PartialEq for PolygonError
impl StructuralPartialEq for PolygonError
Auto Trait Implementations§
impl Forget for PolygonError
impl Freeze for PolygonError
impl Move for PolygonError
impl RefUnwindSafe for PolygonError
impl Send for PolygonError
impl Sync for PolygonError
impl Unpin for PolygonError
impl UnsafeUnpin for PolygonError
impl UnwindSafe for PolygonError
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