Struct p25::bits::HexbitParams
[−]
[src]
pub struct HexbitParams;
Parameters for Hexbits
iterator.
Trait Implementations
impl IterParams for HexbitParams
[src]
type Input = u8
Type to consume when buffering.
type Output = Hexbit
Type to yield at each iteration.
fn bits() -> usize
[src]
Number of bits to consume at each iteration.
fn buffer() -> usize
[src]
Number of input symbols to consume when buffering.
fn shift() -> usize
[src]
Amount to shift buffer after loading an input symbol.
fn to_byte(input: Self::Input) -> u8
[src]
Convert input symbol to a byte.
fn to_output(bits: u8) -> Hexbit
[src]
Convert bits to output type.
fn post_shift() -> usize
[src]
Amount to shift buffer after all buffering, so the bits are lined up at the MSB.
fn iterations() -> usize
[src]
Number of iterations before buffering.
fn validate()
[src]
Verify the parameters are supported.