pub enum Ssimulacra2Error {
LinearRgbConversionFailed,
NonMatchingImageDimensions,
InvalidImageSize,
GaussianBlurError,
}Expand description
Errors which can occur when attempting to calculate a SSIMULACRA2 score from two input images.
Variants§
LinearRgbConversionFailed
NonMatchingImageDimensions
The two input images do not have the same width and height.
InvalidImageSize
One of the input images has a width and/or height of less than 8 pixels.
GaussianBlurError
Gaussian blur operation failed.
Trait Implementations§
Source§impl Clone for Ssimulacra2Error
impl Clone for Ssimulacra2Error
Source§fn clone(&self) -> Ssimulacra2Error
fn clone(&self) -> Ssimulacra2Error
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 Ssimulacra2Error
impl Debug for Ssimulacra2Error
Source§impl Display for Ssimulacra2Error
impl Display for Ssimulacra2Error
Source§impl Error for Ssimulacra2Error
impl Error for Ssimulacra2Error
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 Ssimulacra2Error
impl PartialEq for Ssimulacra2Error
impl Copy for Ssimulacra2Error
impl Eq for Ssimulacra2Error
impl StructuralPartialEq for Ssimulacra2Error
Auto Trait Implementations§
impl Freeze for Ssimulacra2Error
impl RefUnwindSafe for Ssimulacra2Error
impl Send for Ssimulacra2Error
impl Sync for Ssimulacra2Error
impl Unpin for Ssimulacra2Error
impl UnwindSafe for Ssimulacra2Error
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