#[non_exhaustive]pub enum LinearIntersectionError {
NonFiniteInput {
side: InputSide,
},
DegenerateDirection {
side: InputSide,
},
ArithmeticOverflow,
}Expand description
Why a linear intersection could not be answered.
These are refusals, not results: none of them may be interpreted as “no intersection”. A disjoint configuration is a successful classification.
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.
NonFiniteInput
An operand carried a non-finite coordinate or direction component.
DegenerateDirection
An operand’s direction was zero, so it does not define a line.
ArithmeticOverflow
An intermediate value left the finite range, so no sign is provable.
Trait Implementations§
Source§impl Clone for LinearIntersectionError
impl Clone for LinearIntersectionError
Source§fn clone(&self) -> LinearIntersectionError
fn clone(&self) -> LinearIntersectionError
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 LinearIntersectionError
impl Debug for LinearIntersectionError
Source§impl Display for LinearIntersectionError
impl Display for LinearIntersectionError
Source§impl Error for LinearIntersectionError
impl Error for LinearIntersectionError
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 Hash for LinearIntersectionError
impl Hash for LinearIntersectionError
Source§impl PartialEq for LinearIntersectionError
impl PartialEq for LinearIntersectionError
impl Copy for LinearIntersectionError
impl Eq for LinearIntersectionError
impl StructuralPartialEq for LinearIntersectionError
Auto Trait Implementations§
impl Freeze for LinearIntersectionError
impl RefUnwindSafe for LinearIntersectionError
impl Send for LinearIntersectionError
impl Sync for LinearIntersectionError
impl Unpin for LinearIntersectionError
impl UnwindSafe for LinearIntersectionError
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