Struct encoding::codec::singlebyte::SingleByteEncoder [] [src]

pub struct SingleByteEncoder {
    // some fields omitted
}

An encoder for single-byte encodings based on ASCII.

Methods

impl SingleByteEncoder

fn new(index_backward: fn(u32) -> u8) -> Box<RawEncoder>

Trait Implementations

impl RawEncoder for SingleByteEncoder

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 Copy for SingleByteEncoder

impl Clone for SingleByteEncoder

fn clone(&self) -> SingleByteEncoder

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