pub trait ToBytes {
// Required method
fn write_le<W: Write>(&self, writer: W) -> IoResult<()>
where Self: Sized;
// Provided method
fn to_bytes_le(&self) -> Result<Vec<u8>>
where Self: Sized { ... }
}
pub trait ToBytes {
// Required method
fn write_le<W: Write>(&self, writer: W) -> IoResult<()>
where Self: Sized;
// Provided method
fn to_bytes_le(&self) -> Result<Vec<u8>>
where Self: Sized { ... }
}