#[non_exhaustive]pub enum TangencyError {
NonFinite,
InvalidRadius {
index: usize,
radius: Scalar,
},
ZeroDirection {
index: usize,
},
Degenerate,
}Expand description
Why tangent_circles could not be solved.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NonFinite
A coordinate, direction or radius is not finite.
InvalidRadius
Constraint index is a circle whose radius is not positive.
ZeroDirection
Constraint index is a line whose direction is shorter than the
linear tolerance.
Degenerate
Every sign choice’s elimination system was singular: the three constraints do not pin down a family of tangent circles (for example, three coincident points, three identical circles, or three parallel lines).
Trait Implementations§
Source§impl Clone for TangencyError
impl Clone for TangencyError
Source§fn clone(&self) -> TangencyError
fn clone(&self) -> TangencyError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TangencyError
impl Debug for TangencyError
Source§impl Display for TangencyError
impl Display for TangencyError
Source§impl Error for TangencyError
impl Error for TangencyError
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 TangencyError
impl PartialEq for TangencyError
impl Copy for TangencyError
impl StructuralPartialEq for TangencyError
Auto Trait Implementations§
impl Freeze for TangencyError
impl RefUnwindSafe for TangencyError
impl Send for TangencyError
impl Sync for TangencyError
impl Unpin for TangencyError
impl UnwindSafe for TangencyError
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