[−][src]Enum crc_any::CRC
This struct can help you compute a CRC value.
Variants
CRCu8(CRCu8)
CRCu16(CRCu16)
CRCu32(CRCu32)
CRCu64(CRCu64)
Methods
impl CRC
[src]
pub fn create_crc(
poly: u64,
bits: u8,
initial: u64,
final_xor: u64,
reflect: bool
) -> CRC
[src]
poly: u64,
bits: u8,
initial: u64,
final_xor: u64,
reflect: bool
) -> CRC
Create a CRC instance by providing the length of bits, expression, reflection, an initial value and a final xor value.
pub fn create_crc_u8(
poly: u8,
bits: u8,
initial: u8,
final_xor: u8,
reflect: bool
) -> CRC
[src]
poly: u8,
bits: u8,
initial: u8,
final_xor: u8,
reflect: bool
) -> CRC
Create a CRC instance by providing the length of bits, expression, reflection, an initial value and a final xor value.
pub fn create_crc_u16(
poly: u16,
bits: u8,
initial: u16,
final_xor: u16,
reflect: bool
) -> CRC
[src]
poly: u16,
bits: u8,
initial: u16,
final_xor: u16,
reflect: bool
) -> CRC
Create a CRC instance by providing the length of bits, expression, reflection, an initial value and a final xor value.
pub fn create_crc_u32(
poly: u32,
bits: u8,
initial: u32,
final_xor: u32,
reflect: bool
) -> CRC
[src]
poly: u32,
bits: u8,
initial: u32,
final_xor: u32,
reflect: bool
) -> CRC
Create a CRC instance by providing the length of bits, expression, reflection, an initial value and a final xor value.
pub fn create_crc_u64(
poly: u64,
bits: u8,
initial: u64,
final_xor: u64,
reflect: bool
) -> CRC
[src]
poly: u64,
bits: u8,
initial: u64,
final_xor: u64,
reflect: bool
) -> CRC
Create a CRC instance by providing the length of bits, expression, reflection, an initial value and a final xor value.
pub fn digest<T: ?Sized + AsRef<[u8]>>(&mut self, data: &T)
[src]
Digest some data.
pub fn reset(&mut self)
[src]
Reset the sum.
pub fn get_crc(&mut self) -> u64
[src]
Get the current CRC value (it always returns a u64
value). You can continue calling digest
method even after getting a CRC value.
pub fn get_crc_vec_le(&mut self) -> Vec<u8>
[src]
Get the current CRC value (it always returns a vec instance with a length corresponding to the CRC bits). You can continue calling digest
method even after getting a CRC value.
pub fn get_crc_vec_be(&mut self) -> Vec<u8>
[src]
Get the current CRC value (it always returns a vec instance with a length corresponding to the CRC bits). You can continue calling digest
method even after getting a CRC value.
impl CRC
[src]
pub fn crc3gsm() -> CRC
[src]
pub fn crc4itu() -> CRC
[src]
pub fn crc4interlaken() -> CRC
[src]
pub fn crc5epc() -> CRC
[src]
pub fn crc5itu() -> CRC
[src]
pub fn crc5usb() -> CRC
[src]
pub fn crc6cdma2000_a() -> CRC
[src]
pub fn crc6cdma2000_b() -> CRC
[src]
pub fn crc6darc() -> CRC
[src]
pub fn crc6gsm() -> CRC
[src]
pub fn crc6itu() -> CRC
[src]
pub fn crc7() -> CRC
[src]
pub fn crc7umts() -> CRC
[src]
pub fn crc8() -> CRC
[src]
pub fn crc8cdma2000() -> CRC
[src]
pub fn crc8darc() -> CRC
[src]
pub fn crc8dvb_s2() -> CRC
[src]
pub fn crc8ebu() -> CRC
[src]
pub fn crc8icode() -> CRC
[src]
pub fn crc8itu() -> CRC
[src]
pub fn crc8maxim() -> CRC
[src]
pub fn crc8rohc() -> CRC
[src]
pub fn crc8wcdma() -> CRC
[src]
pub fn crc10() -> CRC
[src]
pub fn crc10cdma2000() -> CRC
[src]
pub fn crc10gsm() -> CRC
[src]
pub fn crc11() -> CRC
[src]
pub fn crc12() -> CRC
[src]
pub fn crc12cdma2000() -> CRC
[src]
pub fn crc12gsm() -> CRC
[src]
pub fn crc13bbc() -> CRC
[src]
pub fn crc14darc() -> CRC
[src]
pub fn crc14gsm() -> CRC
[src]
pub fn crc15can() -> CRC
[src]
pub fn crc15mpt1327() -> CRC
[src]
pub fn crc16() -> CRC
[src]
pub fn crc16ccitt_false() -> CRC
[src]
pub fn crc16aug_ccitt() -> CRC
[src]
pub fn crc16buypass() -> CRC
[src]
pub fn crc16cdma2000() -> CRC
[src]
pub fn crc16dds_110() -> CRC
[src]
pub fn crc16dect_r() -> CRC
[src]
pub fn crc16dect_x() -> CRC
[src]
pub fn crc16dnp() -> CRC
[src]
pub fn crc16en_13757() -> CRC
[src]
pub fn crc16genibus() -> CRC
[src]
pub fn crc16maxim() -> CRC
[src]
pub fn crc16mcrf4cc() -> CRC
[src]
pub fn crc16riello() -> CRC
[src]
pub fn crc16t10_dif() -> CRC
[src]
pub fn crc16teledisk() -> CRC
[src]
pub fn crc16tms13157() -> CRC
[src]
pub fn crc16usb() -> CRC
[src]
pub fn crc_a() -> CRC
[src]
pub fn crc16kermit() -> CRC
[src]
pub fn crc16modbus() -> CRC
[src]
pub fn crc16_x25() -> CRC
[src]
pub fn crc16xmodem() -> CRC
[src]
pub fn crc17can() -> CRC
[src]
pub fn crc21can() -> CRC
[src]
pub fn crc24() -> CRC
[src]
pub fn crc24ble() -> CRC
[src]
pub fn crc24flexray_a() -> CRC
[src]
pub fn crc24flexray_b() -> CRC
[src]
pub fn crc24lte_a() -> CRC
[src]
pub fn crc24lte_b() -> CRC
[src]
pub fn crc24os9() -> CRC
[src]
pub fn crc30cdma() -> CRC
[src]
pub fn crc32() -> CRC
[src]
pub fn crc32mhash() -> CRC
[src]
pub fn crc32bzip2() -> CRC
[src]
pub fn crc32c() -> CRC
[src]
pub fn crc32d() -> CRC
[src]
pub fn crc32mpeg2() -> CRC
[src]
pub fn crc32posix() -> CRC
[src]
pub fn crc32q() -> CRC
[src]
pub fn crc32jamcrc() -> CRC
[src]
pub fn crc32xfer() -> CRC
[src]
pub fn crc40gsm() -> CRC
[src]
pub fn crc64() -> CRC
[src]
pub fn crc64iso() -> CRC
[src]
pub fn crc64jones() -> CRC
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,