#[repr(u8)]pub enum Calc {
Show 16 variants
CRC32,
CRC32R,
CRC16,
CRC16R,
_RESERVED_4,
_RESERVED_5,
_RESERVED_6,
_RESERVED_7,
_RESERVED_8,
_RESERVED_9,
_RESERVED_a,
_RESERVED_b,
_RESERVED_c,
_RESERVED_d,
EVEN,
SUM,
}
Variants§
CRC32
Calculate a CRC-32 (IEEE802.3 polynomial)
CRC32R
Calculate a CRC-32 (IEEE802.3 polynomial) with bit reversed data
CRC16
Calculate a CRC-16-CCITT
CRC16R
Calculate a CRC-16-CCITT with bit reversed data
_RESERVED_4
_RESERVED_5
_RESERVED_6
_RESERVED_7
_RESERVED_8
_RESERVED_9
_RESERVED_a
_RESERVED_b
_RESERVED_c
_RESERVED_d
EVEN
XOR reduction over all data. == 1 if the total 1 population count is odd.
SUM
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 PartialEq<Calc> for Calc
impl PartialEq<Calc> for Calc
source§impl PartialOrd<Calc> for Calc
impl PartialOrd<Calc> for Calc
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Calc
impl Eq for Calc
impl StructuralEq for Calc
impl StructuralPartialEq for Calc
Auto Trait Implementations§
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