pub enum DataLengthProcessingMode {
Optimistic,
Conservative,
}Expand description
Denotes processing mode depending on the input data length.
This type can be specified in following methods:
Variants§
Optimistic
The optimistic mode (the default on the official implementation).
It allows processing small files knowing that some of them are not very useful for fuzzy comparison.
Conservative
The conservative mode.
It was the default mode in the past official implementation. While not always true, it generates statistically better fuzzy hashes if the generator accepts.
Trait Implementations§
Source§impl Clone for DataLengthProcessingMode
impl Clone for DataLengthProcessingMode
Source§fn clone(&self) -> DataLengthProcessingMode
fn clone(&self) -> DataLengthProcessingMode
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 DataLengthProcessingMode
impl Debug for DataLengthProcessingMode
Source§impl Default for DataLengthProcessingMode
impl Default for DataLengthProcessingMode
Source§fn default() -> DataLengthProcessingMode
fn default() -> DataLengthProcessingMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for DataLengthProcessingMode
impl PartialEq for DataLengthProcessingMode
impl Copy for DataLengthProcessingMode
impl Eq for DataLengthProcessingMode
impl StructuralPartialEq for DataLengthProcessingMode
Auto Trait Implementations§
impl Freeze for DataLengthProcessingMode
impl RefUnwindSafe for DataLengthProcessingMode
impl Send for DataLengthProcessingMode
impl Sync for DataLengthProcessingMode
impl Unpin for DataLengthProcessingMode
impl UnwindSafe for DataLengthProcessingMode
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