pub enum PlanarError {
NonFinite {
what: String,
},
Degenerate(String),
OpenBoundary {
at: Point2,
},
InvalidInput(String),
Inconsistent(String),
}Expand description
Why a planar operation refused its input or could not close its output.
Variants§
NonFinite
A coordinate was NaN or infinite.
Degenerate(String)
A segment or loop is degenerate (zero length, unequal arc radii, open loop, …).
OpenBoundary
The arrangement’s kept pieces do not close into loops at at.
InvalidInput(String)
A user-facing refusal.
Inconsistent(String)
A result that contradicts an invariant of its operation (an offset that loses a loop it cannot reach, a boolean outside its area bounds).
Trait Implementations§
Source§impl Clone for PlanarError
impl Clone for PlanarError
Source§impl Debug for PlanarError
impl Debug for PlanarError
Source§impl Display for PlanarError
impl Display for PlanarError
Source§impl Error for PlanarError
impl Error for PlanarError
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 From<PlanarError> for Diagnostic
impl From<PlanarError> for Diagnostic
Source§fn from(e: PlanarError) -> Self
fn from(e: PlanarError) -> Self
Converts to this type from the input type.
Source§impl From<PlanarError> for CamError
impl From<PlanarError> for CamError
Source§fn from(e: PlanarError) -> Self
fn from(e: PlanarError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlanarError
impl PartialEq for PlanarError
impl StructuralPartialEq for PlanarError
Auto Trait Implementations§
impl Forget for PlanarError
impl Freeze for PlanarError
impl Move for PlanarError
impl RefUnwindSafe for PlanarError
impl Send for PlanarError
impl Sync for PlanarError
impl Unpin for PlanarError
impl UnsafeUnpin for PlanarError
impl UnwindSafe for PlanarError
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