pub struct Hasher { /* fields omitted */ }
Expand description
Represents an in-progress CRC32 computation.
Create a new Hasher
.
This will perform a CPU feature detection at runtime to select the most
optimal implementation for the current processor architecture.
Create a new Hasher
with an initial CRC32 state.
This works just like Hasher::new
, except that it allows for an initial
CRC32 state to be passed in.
Process the given byte slice and update the hash state.
Finalize the hash state and return the computed CRC32 value.
Combine the hash state with the hash state for the subsequent block of bytes.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Returns the hash value for the values written so far. Read more
Writes a single u8
into this hasher.
Writes a single u16
into this hasher.
Writes a single u32
into this hasher.
Writes a single u64
into this hasher.
Writes a single u128
into this hasher.
Writes a single usize
into this hasher.
Writes a single i8
into this hasher.
Writes a single i16
into this hasher.
Writes a single i32
into this hasher.
Writes a single i64
into this hasher.
Writes a single i128
into this hasher.
Writes a single isize
into this hasher.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.