pub trait WriteByteExt: Write {
// Provided methods
fn write_u8(&mut self, b: u8) -> Result<()> { ... }
fn write_u8_escaped(&mut self, b: u8) -> Result<usize> { ... }
}Expand description
Additional methods for std::io::Write trait to write a single byte.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".