#[repr(u8)]pub enum Calc {
Show 16 variants
CRC32 = 0,
CRC32R = 1,
CRC16 = 2,
CRC16R = 3,
_RESERVED_4 = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
_RESERVED_8 = 8,
_RESERVED_9 = 9,
_RESERVED_a = 10,
_RESERVED_b = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
EVEN = 14,
SUM = 15,
}
Variants§
CRC32 = 0
Calculate a CRC-32 (IEEE802.3 polynomial)
CRC32R = 1
Calculate a CRC-32 (IEEE802.3 polynomial) with bit reversed data
CRC16 = 2
Calculate a CRC-16-CCITT
CRC16R = 3
Calculate a CRC-16-CCITT with bit reversed data
_RESERVED_4 = 4
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
_RESERVED_8 = 8
_RESERVED_9 = 9
_RESERVED_a = 10
_RESERVED_b = 11
_RESERVED_c = 12
_RESERVED_d = 13
EVEN = 14
XOR reduction over all data. == 1 if the total 1 population count is odd.
SUM = 15
Calculate a simple 32-bit checksum (addition with a 32 bit accumulator)
Implementations§
Trait Implementations§
source§impl Ord for Calc
impl Ord for Calc
source§impl PartialOrd for Calc
impl PartialOrd for Calc
impl Copy for Calc
impl Eq for Calc
impl StructuralPartialEq for Calc
Auto Trait Implementations§
impl Freeze for Calc
impl RefUnwindSafe for Calc
impl Send for Calc
impl Sync for Calc
impl Unpin for Calc
impl UnwindSafe for Calc
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)