pub enum MiloError {
SizeMismatch {
img1_width: u32,
img1_height: u32,
img2_width: u32,
img2_height: u32,
},
InputTooSmall {
width: u32,
height: u32,
minimum: u32,
},
Options(String),
}Expand description
Why MILO could not produce a score.
The messages match blazediff-ssim’s, so the front-ends that already
classify those (“Image sizes do not match” is a layout difference, not a
failure) can forward these verbatim.
Variants§
SizeMismatch
The two inputs are not the same size.
InputTooSmall
The input is smaller than the reference implementation accepts.
Options(String)
The metric was configured with values it cannot honour.
Trait Implementations§
impl Eq for MiloError
Source§impl Error for MiloError
impl Error for MiloError
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()
impl StructuralPartialEq for MiloError
Auto Trait Implementations§
impl Freeze for MiloError
impl RefUnwindSafe for MiloError
impl Send for MiloError
impl Sync for MiloError
impl Unpin for MiloError
impl UnsafeUnpin for MiloError
impl UnwindSafe for MiloError
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