Trait code_rs::bits::IterParams
source ·
[−]pub trait IterParams {
type Input;
type Output;
fn bits() -> usize;
fn buffer() -> usize;
fn shift() -> usize;
fn to_byte(input: Self::Input) -> u8;
fn to_output(bits: u8) -> Self::Output;
fn post_shift() -> usize { ... }
fn iterations() -> usize { ... }
fn validate() { ... }
}
Associated Types
Required methods
Provided methods
fn post_shift() -> usize
fn post_shift() -> usize
Amount to shift buffer after all buffering, so the bits are lined up at the MSB.
fn iterations() -> usize
fn iterations() -> usize
Number of iterations before buffering.