pub struct Generator<T: ConstrainedFuzzyHashType> { /* private fields */ }Expand description
The fuzzy hash generator corresponding specified fuzzy hash type.
For the main functionalities, see GeneratorType documentation.
Implementations§
Trait Implementations§
Source§impl<T: ConstrainedFuzzyHashType> GeneratorType for Generator<T>
impl<T: ConstrainedFuzzyHashType> GeneratorType for Generator<T>
Source§const IS_CHECKSUM_EFFECTIVE: bool = <<<T as ConstrainedFuzzyHashType>::Params as
ConstrainedFuzzyHashParams>::InnerGeneratorType>::IS_CHECKSUM_EFFECTIVE
const IS_CHECKSUM_EFFECTIVE: bool = <<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType>::IS_CHECKSUM_EFFECTIVE
Whether the checksum is updated by this generator type. Read more
Source§const MIN: u32 = <<<T as ConstrainedFuzzyHashType>::Params as
ConstrainedFuzzyHashParams>::InnerGeneratorType>::MIN
const MIN: u32 = <<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType>::MIN
The minimum data length
(on all modes).
Source§const MIN_CONSERVATIVE: u32 = <<<T as ConstrainedFuzzyHashType>::Params as
ConstrainedFuzzyHashParams>::InnerGeneratorType>::MIN_CONSERVATIVE
const MIN_CONSERVATIVE: u32 = <<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType>::MIN_CONSERVATIVE
The minimum data length
(on the conservative mode).
Source§const MAX: u32 = <<<T as ConstrainedFuzzyHashType>::Params as
ConstrainedFuzzyHashParams>::InnerGeneratorType>::MAX
const MAX: u32 = <<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType>::MAX
The maximum data length (inclusive).
Source§fn finalize_with_options(
&self,
options: GeneratorOptions,
) -> Result<Self::Output, GeneratorError>
fn finalize_with_options( &self, options: GeneratorOptions, ) -> Result<Self::Output, GeneratorError>
Finalize the fuzzy hash with specified options. Read more
Auto Trait Implementations§
impl<T> Freeze for Generator<T>where
<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType: Freeze,
impl<T> RefUnwindSafe for Generator<T>where
<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType: RefUnwindSafe,
impl<T> Send for Generator<T>where
<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType: Send,
impl<T> Sync for Generator<T>where
<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType: Sync,
impl<T> Unpin for Generator<T>where
<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType: Unpin,
impl<T> UnwindSafe for Generator<T>where
<<T as ConstrainedFuzzyHashType>::Params as ConstrainedFuzzyHashParams>::InnerGeneratorType: UnwindSafe,
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