[][src]Struct crc_any::CRCu8

pub struct CRCu8 { /* fields omitted */ }

This struct can help you compute a CRC-8 (or CRC-x where x is under 8) value.

Methods

impl CRCu8[src]

pub fn create_crc(
    poly: u8,
    bits: u8,
    initial: u8,
    final_xor: u8,
    reflect: bool
) -> CRCu8
[src]

Create a CRCu8 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) -> u8[src]

Get the current CRC value (it always returns a u8 value). You can continue calling digest method even after getting a CRC value.

impl CRCu8[src]

pub fn crc3gsm() -> CRCu8[src]

pub fn crc4itu() -> CRCu8[src]

pub fn crc4interlaken() -> CRCu8[src]

pub fn crc5epc() -> CRCu8[src]

pub fn crc5itu() -> CRCu8[src]

pub fn crc5usb() -> CRCu8[src]

pub fn crc6cdma2000_a() -> CRCu8[src]

pub fn crc6cdma2000_b() -> CRCu8[src]

pub fn crc6darc() -> CRCu8[src]

pub fn crc6gsm() -> CRCu8[src]

pub fn crc6itu() -> CRCu8[src]

pub fn crc7() -> CRCu8[src]

pub fn crc7umts() -> CRCu8[src]

pub fn crc8() -> CRCu8[src]

pub fn crc8cdma2000() -> CRCu8[src]

pub fn crc8darc() -> CRCu8[src]

pub fn crc8dvb_s2() -> CRCu8[src]

pub fn crc8ebu() -> CRCu8[src]

pub fn crc8icode() -> CRCu8[src]

pub fn crc8itu() -> CRCu8[src]

pub fn crc8maxim() -> CRCu8[src]

pub fn crc8rohc() -> CRCu8[src]

pub fn crc8wcdma() -> CRCu8[src]

Trait Implementations

impl Display for CRCu8[src]

impl Debug for CRCu8[src]

Auto Trait Implementations

impl Unpin for CRCu8

impl Sync for CRCu8

impl Send for CRCu8

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]