Struct encoding::codec::simpchinese::GBEncoder [] [src]

pub struct GBEncoder<T> {
    // some fields omitted
}

An encoder for GBK and GB18030.

Specialization

This type is specialized with GBType T, which should be either GBK or GB18030.

Methods

impl<T: GBType> GBEncoder<T>

fn new() -> Box<RawEncoder>

Trait Implementations

impl<T: GBType> RawEncoder for GBEncoder<T>

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

fn is_ascii_compatible(&self) -> bool

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

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

Derived Implementations

impl<T: Copy> Copy for GBEncoder<T>

impl<T: Clone> Clone for GBEncoder<T>

fn clone(&self) -> GBEncoder<T>

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