pub struct Crc32 { /* private fields */ }
Expand description
Represents an in-progress CRC-32/BYOND computation.
Implementations§
Source§impl Crc32
impl Crc32
Sourcepub fn new_with_initial(crc: u32, len: u64) -> Self
pub fn new_with_initial(crc: u32, len: u64) -> Self
Creates a new CRC-32/BYOND computation hasher with the given initial checksum.
The len
parameter represents the amount of bytes consumed to
create the existing checksum, and is used when combining checksums.
Trait Implementations§
Source§impl Hasher for Crc32
impl Hasher for Crc32
1.26.0 · Source§fn write_u128(&mut self, i: u128)
fn write_u128(&mut self, i: u128)
Writes a single
u128
into this hasher.1.3.0 · Source§fn write_usize(&mut self, i: usize)
fn write_usize(&mut self, i: usize)
Writes a single
usize
into this hasher.1.26.0 · Source§fn write_i128(&mut self, i: i128)
fn write_i128(&mut self, i: i128)
Writes a single
i128
into this hasher.1.3.0 · Source§fn write_isize(&mut self, i: isize)
fn write_isize(&mut self, i: isize)
Writes a single
isize
into this hasher.Source§fn write_length_prefix(&mut self, len: usize)
fn write_length_prefix(&mut self, len: usize)
🔬This is a nightly-only experimental API. (
hasher_prefixfree_extras
)Writes a length prefix into this hasher, as part of being prefix-free. Read more
impl Copy for Crc32
impl Eq for Crc32
impl StructuralPartialEq for Crc32
Auto Trait Implementations§
impl Freeze for Crc32
impl RefUnwindSafe for Crc32
impl Send for Crc32
impl Sync for Crc32
impl Unpin 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