pub enum CrcAlgorithm {
Show 53 variants
CrcCustom,
Crc16Arc,
Crc16Cdma2000,
Crc16Cms,
Crc16Dds110,
Crc16DectR,
Crc16DectX,
Crc16Dnp,
Crc16En13757,
Crc16Genibus,
Crc16Gsm,
Crc16Ibm3740,
Crc16IbmSdlc,
Crc16IsoIec144433A,
Crc16Kermit,
Crc16Lj1200,
Crc16M17,
Crc16MaximDow,
Crc16Mcrf4xx,
Crc16Modbus,
Crc16Nrsc5,
Crc16OpensafetyA,
Crc16OpensafetyB,
Crc16Profibus,
Crc16Riello,
Crc16SpiFujitsu,
Crc16T10Dif,
Crc16Teledisk,
Crc16Tms37157,
Crc16Umts,
Crc16Usb,
Crc16Xmodem,
Crc32Aixm,
Crc32Autosar,
Crc32Base91D,
Crc32Bzip2,
Crc32CdRomEdc,
Crc32Cksum,
Crc32Custom,
Crc32Iscsi,
Crc32IsoHdlc,
Crc32Jamcrc,
Crc32Mef,
Crc32Mpeg2,
Crc32Xfer,
Crc64Custom,
Crc64Ecma182,
Crc64GoIso,
Crc64Ms,
Crc64Nvme,
Crc64Redis,
Crc64We,
Crc64Xz,
}Expand description
Supported CRC-16, CRC-32, and CRC-64 variants
Variants§
CrcCustom
Generic custom CRC variant that works with any supported width (16, 32, 64).
The actual width is determined by the width field in CrcParams.
Crc16Arc
Crc16Cdma2000
Crc16Cms
Crc16Dds110
Crc16DectR
Crc16DectX
Crc16Dnp
Crc16En13757
Crc16Genibus
Crc16Gsm
Crc16Ibm3740
Crc16IbmSdlc
Crc16IsoIec144433A
Crc16Kermit
Crc16Lj1200
Crc16M17
Crc16MaximDow
Crc16Mcrf4xx
Crc16Modbus
Crc16Nrsc5
Crc16OpensafetyA
Crc16OpensafetyB
Crc16Profibus
Crc16Riello
Crc16SpiFujitsu
Crc16T10Dif
Crc16Teledisk
Crc16Tms37157
Crc16Umts
Crc16Usb
Crc16Xmodem
Crc32Aixm
Crc32Autosar
Crc32Base91D
Crc32Bzip2
Crc32CdRomEdc
Crc32Cksum
Crc32Custom
👎Deprecated since 1.9.0: Use CrcCustom instead, which works with any supported width (16, 32, 64)
Crc32Iscsi
Crc32IsoHdlc
Crc32Jamcrc
Crc32Mef
Crc32Mpeg2
Crc32Xfer
Crc64Custom
👎Deprecated since 1.9.0: Use CrcCustom instead, which works with any supported width (16, 32, 64)
Crc64Ecma182
Crc64GoIso
Crc64Ms
Crc64Nvme
Crc64Redis
Crc64We
Crc64Xz
Trait Implementations§
Source§impl Clone for CrcAlgorithm
impl Clone for CrcAlgorithm
Source§fn clone(&self) -> CrcAlgorithm
fn clone(&self) -> CrcAlgorithm
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 CrcAlgorithm
impl Debug for CrcAlgorithm
Source§impl Display for CrcAlgorithm
impl Display for CrcAlgorithm
Source§impl FromStr for CrcAlgorithm
impl FromStr for CrcAlgorithm
Source§impl PartialEq for CrcAlgorithm
impl PartialEq for CrcAlgorithm
impl Copy for CrcAlgorithm
impl StructuralPartialEq for CrcAlgorithm
Auto Trait Implementations§
impl Freeze for CrcAlgorithm
impl RefUnwindSafe for CrcAlgorithm
impl Send for CrcAlgorithm
impl Sync for CrcAlgorithm
impl Unpin for CrcAlgorithm
impl UnwindSafe for CrcAlgorithm
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