[−][src]Struct crc_any::CRCu32
This struct can help you compute a CRC-32 (or CRC-x where x is under 32
) value.
Methods
impl CRCu32
[src]
pub fn create_crc(
poly: u32,
bits: u8,
initial: u32,
final_xor: u32,
reflect: bool
) -> CRCu32
[src]
poly: u32,
bits: u8,
initial: u32,
final_xor: u32,
reflect: bool
) -> CRCu32
Create a CRCu32
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(&self) -> u32
[src]
Get the current CRC value (it always returns a u32
value). You can continue calling digest
method even after getting a CRC value.
impl CRCu32
[src]
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 CRCu32
[src]
pub fn crc17can() -> CRCu32
[src]
pub fn crc21can() -> CRCu32
[src]
pub fn crc24() -> CRCu32
[src]
pub fn crc24ble() -> CRCu32
[src]
pub fn crc24flexray_a() -> CRCu32
[src]
pub fn crc24flexray_b() -> CRCu32
[src]
pub fn crc24lte_a() -> CRCu32
[src]
pub fn crc24lte_b() -> CRCu32
[src]
pub fn crc24os9() -> CRCu32
[src]
pub fn crc30cdma() -> CRCu32
[src]
pub fn crc32() -> CRCu32
[src]
pub fn crc32mhash() -> CRCu32
[src]
pub fn crc32bzip2() -> CRCu32
[src]
pub fn crc32c() -> CRCu32
[src]
pub fn crc32d() -> CRCu32
[src]
pub fn crc32mpeg2() -> CRCu32
[src]
pub fn crc32posix() -> CRCu32
[src]
pub fn crc32q() -> CRCu32
[src]
pub fn crc32jamcrc() -> CRCu32
[src]
pub fn crc32xfer() -> CRCu32
[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,