[−][src]Trait jomini::Encoding
An encoding for interpretting byte data as text
Several transformations also should take place:
- trailing whitespace is removed
- escape sequences are unescaped
Required methods
fn decode<'a>(&self, data: &'a [u8]) -> Cow<'a, str>
Decodes bytes into a utf-8 compatible string -- allocating if necessary