Skip to main content

OutputWriter

Trait OutputWriter 

Source
pub trait OutputWriter {
    // Required methods
    fn write_all(&mut self, buf: &[u8]) -> OutputResult<()>;
    fn write_fmt(&mut self, args: Arguments<'_>) -> OutputResult<()>;
}

Required Methods§

Source

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

Source

fn write_fmt(&mut self, args: Arguments<'_>) -> OutputResult<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Write> OutputWriter for T

Available on crate feature std only.