pub trait Decode<'a>: Sized {
// Required method
fn decode_with<R: Read<'a>>(
byte: u8,
reader: &mut R,
) -> Result<Self, Error<R::Error>>;
// Provided method
fn decode<R: Read<'a>>(reader: &mut R) -> Result<Self, Error<R::Error>> { ... }
}
Expand description
Decode trait
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.