#[non_exhaustive]pub enum AffineError {
NonFiniteInput {
input: &'static str,
},
NonAffine,
Matrix(MatrixError),
ResultOutOfRange,
DegenerateNormal,
}Expand description
Failure from preparation or one scalar affine operation. No identity, zero normal or other fallback is substituted.
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
A model coefficient, point, vector or normal is NaN/infinite.
NonAffine
The bottom row must equal (0, 0, 0, 1) exactly; signed zero is accepted.
Matrix(MatrixError)
Checked inversion of the translation-free linear matrix failed.
ResultOutOfRange
A point/vector output cannot round to finite f32.
DegenerateNormal
An input normal is zero, or its cached inverse-transpose image is zero.
Trait Implementations§
Source§impl Clone for AffineError
impl Clone for AffineError
Source§fn clone(&self) -> AffineError
fn clone(&self) -> AffineError
Returns a duplicate 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 AffineError
impl Debug for AffineError
Source§impl Display for AffineError
impl Display for AffineError
Source§impl Error for AffineError
impl Error for AffineError
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<MatrixError> for AffineError
impl From<MatrixError> for AffineError
Source§fn from(value: MatrixError) -> Self
fn from(value: MatrixError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AffineError
impl PartialEq for AffineError
impl Copy for AffineError
impl Eq for AffineError
impl StructuralPartialEq for AffineError
Auto Trait Implementations§
impl Freeze for AffineError
impl RefUnwindSafe for AffineError
impl Send for AffineError
impl Sync for AffineError
impl Unpin for AffineError
impl UnwindSafe for AffineError
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