Trait symcode::interfaces::Decoder[][src]

pub trait Decoder {
    type Symbol;
    type Err;
    fn decode(
        &self,
        encoded_data: Vec<Self::Symbol>
    ) -> Result<BitVec, Self::Err>;
fn num_bits_per_symbol(&self) -> usize; }

To decode an array of symbols into bit string

Associated Types

Loading content...

Required methods

fn decode(&self, encoded_data: Vec<Self::Symbol>) -> Result<BitVec, Self::Err>[src]

Attempt to decode the data. If no errors, return a bit string

fn num_bits_per_symbol(&self) -> usize[src]

How many bits one symbol encodes

Loading content...

Implementors

impl Decoder for Acute32Decoder<'_>[src]

type Symbol = GlyphLabel

type Err = &'static str

Loading content...