pub enum InterpretError {
SizeMismatch {
img1_width: u32,
img1_height: u32,
img2_width: u32,
img2_height: u32,
},
RegionOutOfBounds {
bbox: BoundingBox,
width: u32,
height: u32,
},
Producer(String),
}Expand description
Why a set of regions could not be interpreted.
Variants§
SizeMismatch
The two images are not the same size, so one mask cannot describe both.
RegionOutOfBounds
A supplied region falls outside the image. Regions arrive from callers now — including across the wasm and N-API boundaries — so this is a rejection rather than an out-of-bounds panic.
Producer(String)
The diff or metric this was asked to interpret failed first.
Trait Implementations§
Source§impl Clone for InterpretError
impl Clone for InterpretError
Source§impl Debug for InterpretError
impl Debug for InterpretError
Source§impl Display for InterpretError
impl Display for InterpretError
impl Eq for InterpretError
Source§impl Error for InterpretError
impl Error for InterpretError
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 InterpretError
impl PartialEq for InterpretError
impl StructuralPartialEq for InterpretError
Auto Trait Implementations§
impl Freeze for InterpretError
impl RefUnwindSafe for InterpretError
impl Send for InterpretError
impl Sync for InterpretError
impl Unpin for InterpretError
impl UnsafeUnpin for InterpretError
impl UnwindSafe for InterpretError
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