Trait symcode::interfaces::Encoder [−][src]
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]
&self,
bits: BitVec,
num_glyphs: usize
) -> Result<Self::SymcodeRepresentation, &'static str>
encode bits
into Symcode
, panic if input length is not as defined
Implementors
impl Encoder for Acute32Encoder<'_>
[src]
type SymcodeRepresentation = Vec<GlyphLabel>
fn encode(
&self,
payload: BitVec,
num_glyphs: usize
) -> Result<Self::SymcodeRepresentation, &'static str>
[src]
&self,
payload: BitVec,
num_glyphs: usize
) -> Result<Self::SymcodeRepresentation, &'static str>