pub enum GeomError {
Math(MathError),
DegenerateInput(String),
ConvergenceFailure {
iterations: usize,
},
EmptyInput,
}Expand description
Errors produced by geometry algorithms.
Variants§
Math(MathError)
Propagated error from brepkit-math.
DegenerateInput(String)
Input geometry is degenerate (e.g. zero-length curve, collapsed surface).
ConvergenceFailure
Iterative solver did not converge within the allotted iterations.
EmptyInput
A collection required to be non-empty was empty.
Trait Implementations§
Source§impl Error for GeomError
impl Error for GeomError
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()
Auto Trait Implementations§
impl Freeze for GeomError
impl RefUnwindSafe for GeomError
impl Send for GeomError
impl Sync for GeomError
impl Unpin for GeomError
impl UnsafeUnpin for GeomError
impl UnwindSafe for GeomError
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