pub enum Error {
NoCommonSubstrings,
MalformedInput,
BlockSizeParse,
IncompatibleBlockSizes,
TooManyBlocks,
InvalidHashString(FromUtf8Error),
}
Expand description
Errors pertaining to processing fuzzy hashes
Variants§
NoCommonSubstrings
Fuzzy hashes must contain at least one common substring for comparison
MalformedInput
At least one input string is in the wrong format
BlockSizeParse
Cannot parse the block size of the string
IncompatibleBlockSizes
Two strings have incompatible block sizes. Sizes must be equal, a multiple or a multiple of 2 from each other.
TooManyBlocks
String contains too many blocks for comparison
InvalidHashString(FromUtf8Error)
Unable to produce a valid hash string
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting