Trait p25::coding::trellis::States [] [src]

pub trait States {
    type Symbol;
    fn size() -> usize;
fn pair_idx(cur: usize, next: usize) -> usize;
fn state(input: Self::Symbol) -> usize;
fn symbol(state: usize) -> Self::Symbol;
fn finisher() -> Self::Symbol; fn pair(state: usize, next: usize) -> (Dibit, Dibit) { ... } }

Associated Types

Symbol type to use for states and input.

Required Methods

Number of rows/columns in the state machine.

Get the "constellation point" on the transition from the current state to the next state.

Convert the given symbol to a state.

Convert the given state to a symbol.

Get the "flushing" symbol fed in at the end of a stream.

Provided Methods

Get the dibit pair on the transition from the current state to the next state.

Implementors