Struct encoding::codec::ascii::ASCIIEncodingUnstable [-]  [+] [src]

pub struct ASCIIEncoding;

ASCII, also known as ISO/IEC 646:US.

It is both a basis and a lowest common denominator of many other encodings including UTF-8, which Rust internally assumes.

Trait Implementations

impl Encoding for ASCIIEncoding

fn name(&self) -> &'static str

fn encoder(&self) -> Box<Encoder>

fn decoder(&self) -> Box<Decoder>

fn whatwg_name(&self) -> Option<&'static str>

fn encode(&self, input: &str, trap: EncoderTrap) -> Result<Vec<u8>, SendStr>

fn decode(&self, input: &[u8], trap: DecoderTrap) -> Result<String, SendStr>

Derived Implementations

impl Clone for ASCIIEncoding

fn clone(&self) -> ASCIIEncoding

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