pub enum GeometryError {
InvalidDimension {
value: f64,
},
TooFewVertices {
count: usize,
},
EmptyMesh,
IntersectionFailed {
reason: String,
},
DistanceFailed {
reason: String,
},
}Expand description
Errors that can occur in geometric operations.
Variants§
InvalidDimension
A negative radius or dimension was provided.
TooFewVertices
A polygon has too few vertices.
EmptyMesh
A mesh contains zero triangles.
IntersectionFailed
Intersection computation failed.
DistanceFailed
Distance computation failed (e.g., degenerate segment).
Implementations§
Source§impl GeometryError
impl GeometryError
Sourcepub fn invalid_dim(value: f64) -> Self
pub fn invalid_dim(value: f64) -> Self
Returns a new invalid-dimension error.
Trait Implementations§
Source§impl Clone for GeometryError
impl Clone for GeometryError
Source§impl Debug for GeometryError
impl Debug for GeometryError
Source§impl Display for GeometryError
impl Display for GeometryError
Source§impl Error for GeometryError
impl Error for GeometryError
1.30.0 · 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 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