Struct crc_any::CRC

source ·
pub struct CRC { /* private fields */ }
Expand description

This struct can help you compute a CRC value.

Implementations§

Create a CRC instance by providing the length of bits, expression, reflection, an initial value and a final xor value.

Create a CRC instance by providing an existing lookup table, the length of bits, expression, reflection, an initial value and a final xor value.

Digest some data.

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

Get the current CRC value (it always returns a ([u8; 8], usize) tuple, where the second value of the tuple means the actual length of this CRC value). You can continue calling digest method even after getting a CRC value.

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.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.