pub enum BooleanError {
Validation {
op: BoolOp,
message: String,
},
}Expand description
Errors from polygon / section boolean operations.
Variants§
Validation
The computed result violates a geometric invariant (area bounds or
point-in/polygon sampling) and must not be used downstream. Returning
this instead of a Vec<Polygon> prevents a silently-wrong boolean from
propagating corrupt areas, centroids, moments and FEM meshes.
Trait Implementations§
Source§impl Clone for BooleanError
impl Clone for BooleanError
Source§impl Debug for BooleanError
impl Debug for BooleanError
Source§impl Display for BooleanError
impl Display for BooleanError
Source§impl Error for BooleanError
impl Error for BooleanError
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 BooleanError
impl PartialEq for BooleanError
impl StructuralPartialEq for BooleanError
Auto Trait Implementations§
impl Forget for BooleanError
impl Freeze for BooleanError
impl Move for BooleanError
impl RefUnwindSafe for BooleanError
impl Send for BooleanError
impl Sync for BooleanError
impl Unpin for BooleanError
impl UnsafeUnpin for BooleanError
impl UnwindSafe for BooleanError
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