Enum ssdeep::FuzzyHashOperationError
source · #[repr(u8)]
#[non_exhaustive]
pub enum FuzzyHashOperationError {
BlockHashOverflow,
StringizationOverflow,
}
Expand description
An enumeration representing a cause of a generic fuzzy hash error.
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 copy 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
Available on crate feature std
only.
impl Error for FuzzyHashOperationError
Available on crate feature
std
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FuzzyHashOperationError> for FuzzyHashOperationError
impl PartialEq<FuzzyHashOperationError> for FuzzyHashOperationError
source§fn eq(&self, other: &FuzzyHashOperationError) -> bool
fn eq(&self, other: &FuzzyHashOperationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FuzzyHashOperationError
impl Eq for FuzzyHashOperationError
impl StructuralEq for FuzzyHashOperationError
impl StructuralPartialEq for FuzzyHashOperationError
Auto Trait Implementations§
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