#[non_exhaustive]pub enum OverlayError {
InvalidFrame,
NonFinitePoint,
RingTooShort,
RepeatedVertex,
ZeroArea,
SelfIntersection,
HoleOutsideOuter,
InvalidOffsetDistance,
InvalidOffsetStyle,
ZeroRadiusArc,
HolesOverlap,
PolygonsOverlap,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidFrame
NonFinitePoint
RingTooShort
RepeatedVertex
ZeroArea
SelfIntersection
Non-adjacent boundary segments meet or cross.
HoleOutsideOuter
A hole is not inside its outer ring: it lies outside it or crosses it.
InvalidOffsetDistance
An offset distance or stroke width was not finite, or a width was not positive. A non-finite distance cannot produce a bounded region.
InvalidOffsetStyle
A join or cap parameter was not a finite positive value.
Separate from OverlayError::InvalidOffsetDistance because the fix is
different: the caller passed a malformed style, not a malformed measure.
ZeroRadiusArc
An arc edge’s implied radius was not above tolerance.
Distinct from OverlayError::RepeatedVertex: the chord can be long
enough while the bulge still implies a radius too small to be a real
boundary. Such an edge is a point, not an arc.
HolesOverlap
Two holes of one polygon of a Region overlap: one crosses, holds
or repeats the other (#448). Holes may touch at points and along a
stretch they share.
PolygonsOverlap
Two polygons of a Region overlap: a point lies in both (#448).
Polygons may touch at points and along a stretch they share.
Trait Implementations§
Source§impl Clone for OverlayError
impl Clone for OverlayError
Source§fn clone(&self) -> OverlayError
fn clone(&self) -> OverlayError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OverlayError
impl Debug for OverlayError
Source§impl Display for OverlayError
impl Display for OverlayError
impl Eq for OverlayError
Source§impl Error for OverlayError
impl Error for OverlayError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()