Enum Problem

Source
pub enum Problem {
    NotFinite,
    TooFewPoints,
    IdenticalCoords,
    CollinearCoords,
    SelfIntersection,
    IntersectingRingsOnALine,
    IntersectingRingsOnAnArea,
    InteriorRingNotContainedInExteriorRing,
    ElementsOverlaps,
    ElementsTouchOnALine,
    ElementsAreIdentical,
}
Expand description

The type of problem encountered.

Variants§

§

NotFinite

A coordinate is not finite (NaN or infinite)

§

TooFewPoints

A LineString or a Polygon ring has too few points

§

IdenticalCoords

Identical coords

§

CollinearCoords

Collinear coords

§

SelfIntersection

A ring has a self-intersection

§

IntersectingRingsOnALine

Two interior rings of a Polygon share a common line

§

IntersectingRingsOnAnArea

Two interior rings of a Polygon share a common area

§

InteriorRingNotContainedInExteriorRing

The interior ring of a Polygon is not contained in the exterior ring

§

ElementsOverlaps

Two Polygons of MultiPolygons overlap partially

§

ElementsTouchOnALine

Two Polygons of MultiPolygons touch on a line

§

ElementsAreIdentical

Two Polygons of MultiPolygons are identical

Trait Implementations§

Source§

impl Debug for Problem

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Problem

Source§

fn eq(&self, other: &Problem) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Problem

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool