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