pub trait Write {
type Error;
// Required methods
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>;
fn flush(&mut self) -> Result<(), Self::Error>;
fn write_all(&mut self, buf: &[u8]) -> Result<(), Self::Error>;
}Expand description
Emulates std::io::Write with a simplified interface for no_std
environments.
Required Associated Types§
Required Methods§
Sourcefn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written.