Struct p25::bits::TribitByteParams
[−]
[src]
pub struct TribitByteParams;
Parameters for TribitBytes
iterator.
Trait Implementations
impl IterParams for TribitByteParams
[src]
type Input = Tribit
Type to consume when buffering.
type Output = u8
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) -> Self::Output
[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.