Trait p25::bits::IterParams [] [src]

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

Type to consume when buffering.

Type to yield at each iteration.

Required Methods

Number of bits to consume at each iteration.

Number of input symbols to consume when buffering.

Amount to shift buffer after loading an input symbol.

Convert input symbol to a byte.

Convert bits to output type.

Provided Methods

Amount to shift buffer after all buffering, so the bits are lined up at the MSB.

Number of iterations before buffering.

Verify the parameters are supported.

Implementors