pub trait Decoder {
    fn decode(&self, tokens: Vec<String>) -> Result<String>;
}
Expand description

A Decoder has the responsibility to merge the given Vec<String> in a String.

Required methods

Implementors

As a Decoder, ByteLevel is in charge of converting any byte-level characters to their unicode counterpart, before merging everything back into a single String.