pub trait Writer {
// Required methods
fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>;
fn write_all(&mut self, buf: &[u8]) -> Result<()>;
}Expand description
A trait that provides a subset of the std::io::Write functionality that is usable in no-std contexts.
Required Methods§
fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<()>
fn write_all(&mut self, buf: &[u8]) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".