pub trait WriteByteable: Write {
// Provided method
fn write_one<T: Byteable>(&mut self, data: T) -> Result<()> { ... }
}Expand description
Extends std::io::Write with a method to write a Byteable type.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<T: Write> WriteByteable for T
Implements WriteByteable for all types that implement std::io::Write.