#[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()
Source§impl From<OverlayError> for OverlayRefusal
impl From<OverlayError> for OverlayRefusal
Source§fn from(error: OverlayError) -> OverlayRefusal
fn from(error: OverlayError) -> OverlayRefusal
Source§impl From<OverlayError> for MinkowskiError
impl From<OverlayError> for MinkowskiError
Source§fn from(error: OverlayError) -> MinkowskiError
fn from(error: OverlayError) -> MinkowskiError
Source§impl From<OverlayError> for VisibilityError
impl From<OverlayError> for VisibilityError
Source§fn from(error: OverlayError) -> VisibilityError
fn from(error: OverlayError) -> VisibilityError
Source§impl From<OverlayError> for ProjectionError
impl From<OverlayError> for ProjectionError
Source§fn from(error: OverlayError) -> ProjectionError
fn from(error: OverlayError) -> ProjectionError
Source§impl PartialEq for OverlayError
impl PartialEq for OverlayError
impl StructuralPartialEq for OverlayError
Auto Trait Implementations§
impl Freeze for OverlayError
impl RefUnwindSafe for OverlayError
impl Send for OverlayError
impl Sync for OverlayError
impl Unpin for OverlayError
impl UnsafeUnpin for OverlayError
impl UnwindSafe for OverlayError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more