pub trait Decodable: Sized {
// Required method
fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>;
}
Required Methods§
fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>
Object Safety§
This trait is not object safe.
pub trait Decodable: Sized {
// Required method
fn decode(buf: &mut &[u8]) -> Result<Self, DecodeError>;
}