pub trait Bytes {
// Required methods
fn encode(&self) -> Box<[u8]>;
fn decode(buf: &[u8]) -> Result<Self>
where Self: Sized;
}
pub trait Bytes {
// Required methods
fn encode(&self) -> Box<[u8]>;
fn decode(buf: &[u8]) -> Result<Self>
where Self: Sized;
}