pub struct Crc32Cksum {
digest: Digest,
len: u64,
}Expand description
CRC-32/CKSUM hasher state.
This implementation tracks the length of the input data and appends it to the checksum
calculation similarly to the Unix cksum utility.
Fields§
§digest: Digest§len: u64Trait Implementations§
Source§impl Clone for Crc32Cksum
impl Clone for Crc32Cksum
Source§fn clone(&self) -> Crc32Cksum
fn clone(&self) -> Crc32Cksum
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 Crc32Cksum
impl Debug for Crc32Cksum
Source§impl Default for Crc32Cksum
impl Default for Crc32Cksum
Source§impl DigestString for Crc32Cksum
impl DigestString for Crc32Cksum
Source§const ENCODING: DigestEncoding = DigestEncoding::Dec
const ENCODING: DigestEncoding = DigestEncoding::Dec
The format used for string representation of the digest.
Source§impl FixedOutput for Crc32Cksum
impl FixedOutput for Crc32Cksum
Source§fn finalize_into(self, out: &mut Output<Self>)
fn finalize_into(self, out: &mut Output<Self>)
Consume value and write result into provided array.
§fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
fn finalize_fixed(self) -> GenericArray<u8, Self::OutputSize>
Retrieve result and consume the hasher instance.
Source§impl OutputSizeUser for Crc32Cksum
impl OutputSizeUser for Crc32Cksum
Source§impl Update for Crc32Cksum
impl Update for Crc32Cksum
impl HashMarker for Crc32Cksum
Auto Trait Implementations§
impl Freeze for Crc32Cksum
impl RefUnwindSafe for Crc32Cksum
impl Send for Crc32Cksum
impl Sync for Crc32Cksum
impl Unpin for Crc32Cksum
impl UnwindSafe for Crc32Cksum
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,
§impl<D> Digest for Dwhere
D: FixedOutput + Default + Update + HashMarker,
impl<D> Digest for Dwhere
D: FixedOutput + Default + Update + HashMarker,
§fn new_with_prefix(data: impl AsRef<[u8]>) -> Dwhere
D: Default,
fn new_with_prefix(data: impl AsRef<[u8]>) -> Dwhere
D: Default,
Create new hasher instance which has processed the provided data.
§fn chain_update(self, data: impl AsRef<[u8]>) -> D
fn chain_update(self, data: impl AsRef<[u8]>) -> D
Process input data in a chained manner.
§fn finalize(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
fn finalize(self) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>
Retrieve result and consume hasher instance.
§fn finalize_into(
self,
out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize>,
)
fn finalize_into( self, out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize>, )
Write result into provided array and consume the hasher instance.
§fn finalize_reset(
&mut self,
) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>where
D: FixedOutputReset,
fn finalize_reset(
&mut self,
) -> GenericArray<u8, <D as OutputSizeUser>::OutputSize>where
D: FixedOutputReset,
Retrieve result and reset hasher instance.
§fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize>,
)where
D: FixedOutputReset,
fn finalize_into_reset(
&mut self,
out: &mut GenericArray<u8, <D as OutputSizeUser>::OutputSize>,
)where
D: FixedOutputReset,
Write result into provided array and reset the hasher instance.
§fn output_size() -> usize
fn output_size() -> usize
Get output size of the hasher