Struct encoding::codec::utf_8::UTF8Encoder [] [src]

pub struct UTF8Encoder;

An encoder for UTF-8.

Methods

impl UTF8Encoder

fn new() -> Box<RawEncoder>

Trait Implementations

impl RawEncoder for UTF8Encoder

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 UTF8Encoder

impl Clone for UTF8Encoder

fn clone(&self) -> UTF8Encoder

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