pub enum OperationsError {
InvalidInput {
reason: String,
},
NonManifoldResult,
EmptyResult {
reason: String,
},
Topology(TopologyError),
Math(MathError),
Algo(AlgoError),
Blend(BlendError),
Check(CheckError),
Geometry(GeomError),
}Expand description
Errors from modeling operations.
Variants§
InvalidInput
The input shape is invalid for this operation.
NonManifoldResult
The operation produced a non-manifold result.
EmptyResult
The operation produced an empty result (no geometry).
Boolean operations return this when the algebraic outcome is the
empty set: Cut(A, B) when A ⊆ B, or any operation on
pre-collapsed inputs. Distinguishable from InvalidInput so
callers can apply empty-operand identity rules without
string-matching the error message.
Topology(TopologyError)
A referenced topology entity was not found.
Math(MathError)
A math error occurred during the operation.
Algo(AlgoError)
A GFA algorithm error occurred.
Blend(BlendError)
A blend (fillet/chamfer v2) error occurred.
Check(CheckError)
A check (classification/validation/distance) error occurred.
Geometry(GeomError)
A geometry conversion error occurred.
Trait Implementations§
Source§impl Debug for OperationsError
impl Debug for OperationsError
Source§impl Display for OperationsError
impl Display for OperationsError
Source§impl Error for OperationsError
impl Error for OperationsError
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 From<AlgoError> for OperationsError
impl From<AlgoError> for OperationsError
Source§impl From<BlendError> for OperationsError
impl From<BlendError> for OperationsError
Source§fn from(source: BlendError) -> Self
fn from(source: BlendError) -> Self
Converts to this type from the input type.
Source§impl From<CheckError> for OperationsError
impl From<CheckError> for OperationsError
Source§fn from(source: CheckError) -> Self
fn from(source: CheckError) -> Self
Converts to this type from the input type.
Source§impl From<GeomError> for OperationsError
impl From<GeomError> for OperationsError
Source§impl From<MathError> for OperationsError
impl From<MathError> for OperationsError
Source§impl From<TopologyError> for OperationsError
impl From<TopologyError> for OperationsError
Source§fn from(source: TopologyError) -> Self
fn from(source: TopologyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationsError
impl RefUnwindSafe for OperationsError
impl Send for OperationsError
impl Sync for OperationsError
impl Unpin for OperationsError
impl UnsafeUnpin for OperationsError
impl UnwindSafe for OperationsError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more