pub trait Encoder {
    fn to_string(&self, data: &[u8]) -> Result<String>;
fn to_bytes(&self, data: &str) -> Result<Vec<u8>>; }
Expand description

Converter between string and multibyte encoding.

Required methods

Convert from bytes to string.

Convert from string to bytes.

Implementors