pub trait Decode<'a>: Sized {
    fn decode_with<R: Read<'a>>(
        byte: u8,
        reader: &mut R
    ) -> Result<Self, Error<R::Error>>; fn decode<R: Read<'a>>(reader: &mut R) -> Result<Self, Error<R::Error>> { ... } }
Expand description

Decode trait

Required methods

Decode with first byte

The first byte can be read in advance to determine the decode type.

Provided methods

Decode to type

Implementations on Foreign Types

Implementors