#[non_exhaustive]pub enum ExactError {
NonFinite,
DegenerateLine,
NegativeRadius,
DifferentLines,
Undefined,
TooDeep,
DegenerateConic,
}Expand description
Why an exact computation was refused.
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
An input was NaN or infinite. Exact values exist only for finite numbers.
DegenerateLine
A line’s two defining points coincide, so it has no direction.
NegativeRadius
A circle’s radius was negative.
DifferentLines
Two parameters were compared along different lines, where parameters mean different things.
Undefined
The expression has no real value in exact arithmetic (for example a square root of a negative number). A construction that validated its inputs never reports this.
TooDeep
More nested square roots than crate::tower::MAX_DEPTH: cost
grows exponentially with depth, so the tower refuses rather than
run unboundedly.
DegenerateConic
A conic whose quadratic part is identically zero (it is a line), or a conic pair no admissible shear could separate.
Trait Implementations§
Source§impl Clone for ExactError
impl Clone for ExactError
Source§fn clone(&self) -> ExactError
fn clone(&self) -> ExactError
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 ExactError
impl Debug for ExactError
Source§impl PartialEq for ExactError
impl PartialEq for ExactError
impl Copy for ExactError
impl Eq for ExactError
impl StructuralPartialEq for ExactError
Auto Trait Implementations§
impl Freeze for ExactError
impl RefUnwindSafe for ExactError
impl Send for ExactError
impl Sync for ExactError
impl Unpin for ExactError
impl UnwindSafe for ExactError
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