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

pub struct SingleByteEncoding {
    pub name: &'static str,
    pub whatwg_name: Option<&'static str>,
    pub index_forward: fn(_: u8) -> u16,
    pub index_backward: fn(_: u32) -> u8,
}

A common framework for single-byte encodings based on ASCII.

Fields

Trait Implementations

impl Encoding for SingleByteEncoding
[src]

An easy-to-use interface to RawEncoder. On the encoder error trap is called, which may return a replacement sequence to continue processing, or a failure to return the error. Read more

Encode into a ByteWriter.

An easy-to-use interface to RawDecoder. On the decoder error trap is called, which may return a replacement string to continue processing, or a failure to return the error. Read more

Decode into a StringWriter. Read more

impl Clone for SingleByteEncoding
[src]

Performs copy-assignment from source. Read more

impl Copy for SingleByteEncoding
[src]

Auto Trait Implementations

impl Send for SingleByteEncoding

impl Sync for SingleByteEncoding

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]