#[non_exhaustive]pub enum PolygonError {
TooFewVertices {
distinct: usize,
},
InvalidPoint {
index: usize,
source: Error,
},
Degenerate,
SelfIntersection {
first_edge: usize,
second_edge: usize,
},
}Expand description
Failures specific to polygon validation and preparation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooFewVertices
Fewer than three distinct vertices remain after tolerance cleanup.
InvalidPoint
A source composition could not be validated or projected.
Degenerate
The source loop has effectively zero signed area.
SelfIntersection
Two non-adjacent source edges intersect or touch.
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
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 Freeze 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