pub enum ImageHashError {
InvalidHashSize(usize),
NotPowerOfTwo(usize),
HashSizeTooLarge {
level: usize,
ll_max_level: usize,
},
InvalidBinbits(usize),
InvalidHex(String),
ShapeMismatch {
h1: usize,
w1: usize,
h2: usize,
w2: usize,
},
EmptyBits,
NonRectangular {
expected: usize,
got: usize,
},
}Variants§
InvalidHashSize(usize)
NotPowerOfTwo(usize)
HashSizeTooLarge
InvalidBinbits(usize)
InvalidHex(String)
ShapeMismatch
EmptyBits
NonRectangular
Trait Implementations§
Source§impl Debug for ImageHashError
impl Debug for ImageHashError
Source§impl Display for ImageHashError
impl Display for ImageHashError
Source§impl Error for ImageHashError
impl Error for ImageHashError
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()
Auto Trait Implementations§
impl Freeze for ImageHashError
impl RefUnwindSafe for ImageHashError
impl Send for ImageHashError
impl Sync for ImageHashError
impl Unpin for ImageHashError
impl UnsafeUnpin for ImageHashError
impl UnwindSafe for ImageHashError
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