pub trait StdOut: Send + 'static {
// Required methods
fn write_bytes(&self, bytes: &[u8]) -> Result;
fn write_str(&self, s: &str) -> Result;
fn write_fmt(&self, args: Arguments<'_>) -> Result;
fn flush(&self) -> Result;
}
Expand description
A trait describes common operations with the stdout.
Required Methods§
Sourcefn write_bytes(&self, bytes: &[u8]) -> Result
fn write_bytes(&self, bytes: &[u8]) -> Result
Writes a bytes slice into the stdout, returning whether write succeeded.