Trait local_encoding::Encoder [] [src]

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

Converter between string and multibyte encoding.

Required Methods

Convert from bytes to string.

Convert from string to bytes.

Implementors