pub enum FingerprintAlgorithm {
Crc32,
Adler32,
XorHash,
BlockHash,
}Expand description
Hash algorithm used for fingerprinting.
Variants§
Crc32
CRC-32 (fast but weak).
Adler32
Adler-32 (fast checksum).
XorHash
Simple XOR-based hash (very fast, low quality).
BlockHash
Block-level content hash.
Implementations§
Trait Implementations§
Source§impl Clone for FingerprintAlgorithm
impl Clone for FingerprintAlgorithm
Source§fn clone(&self) -> FingerprintAlgorithm
fn clone(&self) -> FingerprintAlgorithm
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 FingerprintAlgorithm
impl Debug for FingerprintAlgorithm
Source§impl Hash for FingerprintAlgorithm
impl Hash for FingerprintAlgorithm
Source§impl PartialEq for FingerprintAlgorithm
impl PartialEq for FingerprintAlgorithm
impl Copy for FingerprintAlgorithm
impl Eq for FingerprintAlgorithm
impl StructuralPartialEq for FingerprintAlgorithm
Auto Trait Implementations§
impl Freeze for FingerprintAlgorithm
impl RefUnwindSafe for FingerprintAlgorithm
impl Send for FingerprintAlgorithm
impl Sync for FingerprintAlgorithm
impl Unpin for FingerprintAlgorithm
impl UnsafeUnpin for FingerprintAlgorithm
impl UnwindSafe for FingerprintAlgorithm
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more