[−][src]Struct crc_any::CRCu8
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]
poly: u8,
bits: u8,
initial: u8,
final_xor: u8,
reflect: bool
) -> CRCu8
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
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,