pub struct Crc32;Expand description
CRC-32/ISO-HDLC, the CRC-32 of IEEE 802.3, zlib, gzip, and PNG.
Reflected polynomial 0xEDB88320, initial value and final XOR
0xFFFFFFFF. Check value for b"123456789": 0xCBF43926.
§Example
use wire_codec::checksum::{Checksum, Crc32};
assert_eq!(Crc32.compute(b"123456789"), 0xCBF4_3926);Trait Implementations§
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 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