pub trait Write {
// Required methods
fn write(&mut self, buf: &[u8]) -> Result<usize>;
fn flush(&mut self) -> Result<()>;
}Expand description
Minimal write abstraction used by this crate in both std and no‑std modes.
pub trait Write {
// Required methods
fn write(&mut self, buf: &[u8]) -> Result<usize>;
fn flush(&mut self) -> Result<()>;
}Minimal write abstraction used by this crate in both std and no‑std modes.