#[non_exhaustive]pub enum ButteraugliError {
ImageTooSmall {
width: usize,
height: usize,
},
DimensionMismatch {
w1: usize,
h1: usize,
w2: usize,
h2: usize,
},
}Expand description
Error type for butteraugli 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.
Trait Implementations§
Source§impl Clone for ButteraugliError
impl Clone for ButteraugliError
Source§fn clone(&self) -> ButteraugliError
fn clone(&self) -> ButteraugliError
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 ButteraugliError
impl Debug for ButteraugliError
Source§impl Display for ButteraugliError
impl Display for ButteraugliError
Source§impl Error for ButteraugliError
impl Error for ButteraugliError
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 ButteraugliError
impl PartialEq for ButteraugliError
impl Eq for ButteraugliError
impl StructuralPartialEq for ButteraugliError
Auto Trait Implementations§
impl Freeze for ButteraugliError
impl RefUnwindSafe for ButteraugliError
impl Send for ButteraugliError
impl Sync for ButteraugliError
impl Unpin for ButteraugliError
impl UnwindSafe for ButteraugliError
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