Enum image_hasher::InvalidBytesError
source · pub enum InvalidBytesError {
BytesWrongLength {
expected: usize,
found: usize,
},
Base64(DecodeError),
}
Expand description
Error that can happen constructing a ImageHash
from bytes.
Variants§
BytesWrongLength
Fields
Byte slice passed to from_bytes
was the wrong length.
Base64(DecodeError)
String passed was not valid base64.
Trait Implementations§
source§impl Debug for InvalidBytesError
impl Debug for InvalidBytesError
source§impl PartialEq<InvalidBytesError> for InvalidBytesError
impl PartialEq<InvalidBytesError> for InvalidBytesError
source§fn eq(&self, other: &InvalidBytesError) -> bool
fn eq(&self, other: &InvalidBytesError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InvalidBytesError
impl StructuralEq for InvalidBytesError
impl StructuralPartialEq for InvalidBytesError
Auto Trait Implementations§
impl RefUnwindSafe for InvalidBytesError
impl Send for InvalidBytesError
impl Sync for InvalidBytesError
impl Unpin for InvalidBytesError
impl UnwindSafe for InvalidBytesError
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