pub enum GeometryError {
NonFinite,
InvertedBounds,
DegenerateSegment,
TooFewPoints,
}Expand description
An error produced while constructing validated geometry.
Variants§
NonFinite
At least one coordinate is NaN or infinite.
InvertedBounds
A rectangle’s right or bottom edge precedes its opposite edge.
DegenerateSegment
A line segment’s endpoints are identical.
TooFewPoints
A polygon has fewer than three supplied points.
Trait Implementations§
Source§impl Clone for GeometryError
impl Clone for GeometryError
Source§fn clone(&self) -> GeometryError
fn clone(&self) -> GeometryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GeometryError
Source§impl Debug for GeometryError
impl Debug for GeometryError
impl Eq for GeometryError
Source§impl PartialEq for GeometryError
impl PartialEq for GeometryError
impl StructuralPartialEq for GeometryError
Auto Trait Implementations§
impl Freeze for GeometryError
impl RefUnwindSafe for GeometryError
impl Send for GeometryError
impl Sync for GeometryError
impl Unpin for GeometryError
impl UnsafeUnpin for GeometryError
impl UnwindSafe for GeometryError
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