pub trait WriteExtraExt: WriteBytesExt {
// Required methods
fn write_b8(&mut self, bytes: &[u8]) -> Result<()>;
fn write_b16(&mut self, bytes: &[u8]) -> Result<()>;
fn write_b32(&mut self, bytes: &[u8], max: usize) -> Result<()>;
// Provided method
fn write_str(&mut self, s: &str) -> Result<()> { ... }
}Required Methods§
Sourcefn write_b8(&mut self, bytes: &[u8]) -> Result<()>
fn write_b8(&mut self, bytes: &[u8]) -> Result<()>
Writes a Vec of bytes prepended with 1 byte length
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.