Struct encoding::codec::error::ErrorEncodingUnstable
[-]
[+]
[src]
pub struct ErrorEncoding;
An encoding that returns encoder/decoder error for every case.
pub struct ErrorEncoding;
An encoding that returns encoder/decoder error for every case.
impl Encoding for ErrorEncoding
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>
impl Clone for ErrorEncoding
fn clone(&self) -> ErrorEncoding
fn clone_from(&mut self, source: &Self)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).