pub enum InvalidBytesError {
BytesWrongLength {
expected: usize,
found: usize,
},
Base64(DecodeError),
}Expand description
Error that can happen constructing a ImageHash from bytes.
Variants§
BytesWrongLength
Byte slice passed to from_bytes was the wrong length.
Fields
Base64(DecodeError)
String passed was not valid base64.
Trait Implementations§
Source§impl Debug for InvalidBytesError
impl Debug for InvalidBytesError
Source§impl PartialEq for InvalidBytesError
impl PartialEq for InvalidBytesError
impl StructuralPartialEq for InvalidBytesError
Auto Trait Implementations§
impl Freeze for InvalidBytesError
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