pub enum AffineError {
NonInvertibleTransform,
NonFiniteTransform,
UndefinedRotation,
InvalidWorldFile,
}Expand description
Errors produced by affine operations.
Variants§
NonInvertibleTransform
The transform has a zero determinant and therefore has no inverse.
NonFiniteTransform
An operation requiring finite values received a non-finite matrix.
UndefinedRotation
A rotation angle is undefined for an improper or degenerate transform.
InvalidWorldFile
World File text did not contain exactly six valid floating-point values.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AffineError
Source§impl Debug for AffineError
impl Debug for AffineError
Source§impl Display for AffineError
impl Display for AffineError
impl Eq for AffineError
Source§impl Error for AffineError
impl Error for AffineError
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 AffineError
impl PartialEq 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 UnsafeUnpin 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