Trait symcode::interfaces::Encoder[][src]

pub trait Encoder {
    type SymcodeRepresentation;
    fn encode(
        &self,
        bits: BitVec,
        num_glyphs: usize
    ) -> Result<Self::SymcodeRepresentation, &'static str>; }

To encode a bit string into a Symcode Representation

Associated Types

Loading content...

Required methods

fn encode(
    &self,
    bits: BitVec,
    num_glyphs: usize
) -> Result<Self::SymcodeRepresentation, &'static str>
[src]

encode bits into Symcode, panic if input length is not as defined

Loading content...

Implementors

impl Encoder for Acute32Encoder<'_>[src]

type SymcodeRepresentation = Vec<GlyphLabel>

Loading content...