logo
pub trait Output: Send + Sync + Debug {
    fn write_stdout<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<()>;
    fn write_stderr<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<()>;

    fn print<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<()> { ... }
    fn puts<T: AsRef<[u8]>>(&mut self, bytes: T) -> Result<()> { ... }
}

Required Methods

Provided Methods

Implementors