Struct encoding::codec::japanese::ISO2022JPEncoding [] [src]

pub struct ISO2022JPEncoding;

ISO-2022-JP.

This version of ISO-2022-JP does not correspond to any standardized repertoire of character sets due to the widespread implementation differences. The following character sets are supported:

Trait Implementations

impl Encoding for ISO2022JPEncoding

fn name(&self) -> &'static str

fn whatwg_name(&self) -> Option<&'static str>

fn raw_encoder(&self) -> Box<RawEncoder>

fn raw_decoder(&self) -> Box<RawDecoder>

fn encode(&self, input: &str, trap: EncoderTrap) -> Result<Vec<u8>, Cow<'static, str>>

fn encode_to(&self, input: &str, trap: EncoderTrap, ret: &mut ByteWriter) -> Result<(), Cow<'static, str>>

fn decode(&self, input: &[u8], trap: DecoderTrap) -> Result<String, Cow<'static, str>>

fn decode_to(&self, input: &[u8], trap: DecoderTrap, ret: &mut StringWriter) -> Result<(), Cow<'static, str>>

Derived Implementations

impl Copy for ISO2022JPEncoding

impl Clone for ISO2022JPEncoding

fn clone(&self) -> ISO2022JPEncoding

fn clone_from(&mut self, source: &Self)