pub trait WriteBytes {
type Error;
// Required method
fn write_all(&mut self, bytes: &[u8]) -> Result<(), Self::Error>;
}Expand description
A trait for writing bytes, usable in no_std environments.
This replaces std::io::Write for the columnar encoding functions.
Implementations exist for Vec<u8> (always) and std::io::Write (with the std feature).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".