pub trait BinaryWrite {
// Required method
fn write_all(&mut self, bytes: &[u8]) -> Result<(), WriteError>;
}Expand description
A minimal binary write trait that works in both std and no_std environments.
This trait provides a simple interface for writing bytes, similar to std::io::Write,
but without requiring the standard library.