pub enum CrcAlgorithm {
Crc32,
Crc32C,
Crc16CCITT,
}
Expand description
CRC algorithms
In all cases, input bytes are bit-reversed (i.e., consumed from LSB to MSB.)
Algorithms prefixed with Sam4L
are native to that chip and thus require
no software post-processing on platforms using it.
Variants§
Crc32
Polynomial 0x04C11DB7, output reversed then inverted (“CRC-32”)
Crc32C
Polynomial 0x1EDC6F41, output reversed then inverted (“CRC-32C” / “Castagnoli”)
Crc16CCITT
Polynomial 0x1021, no output post-processing (“CRC-16-CCITT”)
Trait Implementations§
Source§impl Clone for CrcAlgorithm
impl Clone for CrcAlgorithm
Source§fn clone(&self) -> CrcAlgorithm
fn clone(&self) -> CrcAlgorithm
Returns a copy 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 moreimpl Copy 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