pub struct Config { /* private fields */ }
Expand description
CRC configuration structure, uses builder pattern.
Implementations§
Source§impl Config
impl Config
Sourcepub fn initial_value(self, init: u32) -> Self
pub fn initial_value(self, init: u32) -> Self
Sets the initial value of the CRC.
Sourcepub fn polynomial(self, polynomial: Polynomial) -> Self
pub fn polynomial(self, polynomial: Polynomial) -> Self
Sets the polynomial of the CRC.
Sourcepub fn input_bit_reversal(self, rev: Option<BitReversal>) -> Self
pub fn input_bit_reversal(self, rev: Option<BitReversal>) -> Self
Enables bit reversal of the inputs.
Sourcepub fn output_bit_reversal(self, rev: bool) -> Self
pub fn output_bit_reversal(self, rev: bool) -> Self
Enables bit reversal of the outputs.
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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