pub struct Crc32 { /* private fields */ }Expand description
CRC32C hasher.
Uses the iSCSI polynomial (0x1EDC6F41) as specified in RFC 3720.
Implementations§
Trait Implementations§
Source§impl Hasher for Crc32
impl Hasher for Crc32
Source§fn hash(parts: &[&[u8]]) -> Self::Digest
fn hash(parts: &[&[u8]]) -> Self::Digest
Hash the concatenation of
parts in a single shot. Read moreSource§fn hash_pair(
left: &[&[u8]],
right: &[&[u8]],
_strategy: &impl Strategy,
) -> (Self::Digest, Self::Digest)
fn hash_pair( left: &[&[u8]], right: &[&[u8]], _strategy: &impl Strategy, ) -> (Self::Digest, Self::Digest)
Hash two messages, each given as a concatenation of parts, in a
single shot, splitting the work across
strategy when the hash
function allows it. Read moreSource§fn finalize(self) -> (Self, Self::Digest)
fn finalize(self) -> (Self, Self::Digest)
Consume the hasher, returning a freshly-reset hasher alongside the
digest of everything written so far.
Auto Trait Implementations§
impl Freeze for Crc32
impl RefUnwindSafe for Crc32
impl Send for Crc32
impl Sync for Crc32
impl Unpin for Crc32
impl UnsafeUnpin for Crc32
impl UnwindSafe for Crc32
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