#[non_exhaustive]pub enum VecError {
ZeroNorm,
NonFiniteValue,
DivisionByZero,
}Expand description
Errors returned by vector operations.
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.
ZeroNorm
Zero vector: normalization, projection, or reflection is undefined.
NonFiniteValue
A NaN or infinite value was found in the input or result.
DivisionByZero
Division by zero (scalar divisor or zero w component).
Trait Implementations§
impl Copy for VecError
impl Eq for VecError
impl StructuralPartialEq for VecError
Auto Trait Implementations§
impl Forget for VecError
impl Freeze for VecError
impl Move for VecError
impl RefUnwindSafe for VecError
impl Send for VecError
impl Sync for VecError
impl Unpin for VecError
impl UnsafeUnpin for VecError
impl UnwindSafe for VecError
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