pub struct Config {
pub polynomial: Polynomial,
pub reverse: bool,
pub seed: u32,
pub reflect_output: bool,
}Expand description
CRC Configuration
Fields§
§polynomial: Polynomial§reverse: boolCalculate CRC by shifting right if true. CRC Calculation Switching in Renesas-speak, §32.2.1.
seed: u32Initial output value.
reflect_output: boolApply a bitwise NOT operation to the result if true.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more