pub trait Write: IO {
// Required methods
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>;
fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>;
fn flush(&mut self) -> Result<(), Self::Error>;
}
pub trait Write: IO {
// Required methods
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>;
fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>;
fn flush(&mut self) -> Result<(), Self::Error>;
}