pub enum ChecksumAlgorithm {
Fnv1a64,
Djb2,
Murmur3_32,
Adler32,
Crc32,
Xxhash64,
Blake3_256,
}Expand description
Supported checksum algorithms, all implemented in pure Rust.
Variants§
Fnv1a64
FNV-1a 64-bit hash.
Djb2
DJB2 hash (32-bit).
Murmur3_32
Simplified Murmur3-32 hash.
Adler32
Adler-32 checksum.
Crc32
CRC-32/ISO-HDLC.
Xxhash64
Simplified xxHash-64.
Blake3_256
Blake3-inspired 256-bit hash (4 FNV-1a rounds with different seeds).
Implementations§
Trait Implementations§
Source§impl Clone for ChecksumAlgorithm
impl Clone for ChecksumAlgorithm
Source§fn clone(&self) -> ChecksumAlgorithm
fn clone(&self) -> ChecksumAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChecksumAlgorithm
Source§impl Debug for ChecksumAlgorithm
impl Debug for ChecksumAlgorithm
impl Eq for ChecksumAlgorithm
Source§impl Hash for ChecksumAlgorithm
impl Hash for ChecksumAlgorithm
Source§impl PartialEq for ChecksumAlgorithm
impl PartialEq for ChecksumAlgorithm
Source§fn eq(&self, other: &ChecksumAlgorithm) -> bool
fn eq(&self, other: &ChecksumAlgorithm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChecksumAlgorithm
Auto Trait Implementations§
impl Freeze for ChecksumAlgorithm
impl RefUnwindSafe for ChecksumAlgorithm
impl Send for ChecksumAlgorithm
impl Sync for ChecksumAlgorithm
impl Unpin for ChecksumAlgorithm
impl UnsafeUnpin for ChecksumAlgorithm
impl UnwindSafe for ChecksumAlgorithm
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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