#[non_exhaustive]pub enum FuzzyHashOperationError {
BlockHashOverflow,
StringizationOverflow,
}
Expand description
An enumeration representing a cause of a generic fuzzy hash error.
§Compatibility Note
Since the version 0.3, the representation of this enum is no longer specified as specific representation of this enum is not important.
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.
BlockHashOverflow
When converting between two fuzzy hash types, copying block hash would cause a buffer overflow.
StringizationOverflow
When converting a fuzzy hash to a string, a buffer overflow would occur.
Trait Implementations§
Source§impl Clone for FuzzyHashOperationError
impl Clone for FuzzyHashOperationError
Source§fn clone(&self) -> FuzzyHashOperationError
fn clone(&self) -> FuzzyHashOperationError
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 FuzzyHashOperationError
impl Debug for FuzzyHashOperationError
Source§impl Display for FuzzyHashOperationError
impl Display for FuzzyHashOperationError
Source§impl Error for FuzzyHashOperationError
impl Error for FuzzyHashOperationError
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 FuzzyHashOperationError
impl PartialEq for FuzzyHashOperationError
impl Copy for FuzzyHashOperationError
impl Eq for FuzzyHashOperationError
impl StructuralPartialEq for FuzzyHashOperationError
Auto Trait Implementations§
impl Freeze for FuzzyHashOperationError
impl RefUnwindSafe for FuzzyHashOperationError
impl Send for FuzzyHashOperationError
impl Sync for FuzzyHashOperationError
impl Unpin for FuzzyHashOperationError
impl UnwindSafe for FuzzyHashOperationError
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