Struct encoding::codec::utf_16::UTF16Encoder [] [src]

pub struct UTF16Encoder<E> {
    // some fields omitted
}

An encoder for UTF-16.

Specialization

This type is specialized with endianness type E, which should be either Little (little endian) or Big (big endian).

Trait Implementations

impl<E: Endian> RawEncoder for UTF16Encoder<E>

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

fn raw_feed(&mut self, input: &str, output: &mut ByteWriter) -> (usize, Option<CodecError>)

fn raw_finish(&mut self, _output: &mut ByteWriter) -> Option<CodecError>

fn is_ascii_compatible(&self) -> bool

Derived Implementations

impl<E: Copy> Copy for UTF16Encoder<E>

impl<E: Clone> Clone for UTF16Encoder<E>

fn clone(&self) -> UTF16Encoder<E>

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