Struct encoding::codec::error::ErrorEncoding
[−]
[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 ErrorEncodingfn name(&self) -> &'static strfn raw_encoder(&self) -> Box<RawEncoder>fn raw_decoder(&self) -> Box<RawDecoder>fn whatwg_name(&self) -> Option<&'static str>fn encode(&self, input: &str, trap: EncoderTrap) -> Result<Vec<u8>, Cow<'static, str>>fn encode_to(&self, input: &str, trap: EncoderTrap, ret: &mut ByteWriter) -> Result<(), Cow<'static, str>>fn decode(&self, input: &[u8], trap: DecoderTrap) -> Result<String, Cow<'static, str>>fn decode_to(&self, input: &[u8], trap: DecoderTrap, ret: &mut StringWriter) -> Result<(), Cow<'static, str>>impl Copy for ErrorEncodingimpl Clone for ErrorEncodingfn clone(&self) -> ErrorEncodingfn 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, type, macro,
and const.
Search functions by type signature (e.g.
vec -> usize)