layout::io

Trait Write

source
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>;
}

Required Methods§

source

fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>

source

fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>

source

fn flush(&mut self) -> Result<(), Self::Error>

Implementors§

source§

impl<S: Write> Write for StdIO<S>