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

pub struct SingleByteDecoder {
    // some fields omitted
}

A decoder for single-byte encodings based on ASCII.

Methods

impl SingleByteDecoder

fn new(index_forward: fn(u8) -> u16) -> Box<RawDecoder>

Trait Implementations

impl RawDecoder for SingleByteDecoder

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

fn is_ascii_compatible(&self) -> bool

fn raw_feed(&mut self, input: &[u8], output: &mut StringWriter) -> (usize, Option<CodecError>)

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

Derived Implementations

impl Copy for SingleByteDecoder

impl Clone for SingleByteDecoder

fn clone(&self) -> SingleByteDecoder

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