Trait ciborium_io::Write [−][src]
pub trait Write {
type Error;
fn write_all(&mut self, data: &[u8]) -> Result<(), Self::Error>;
fn flush(&mut self) -> Result<(), Self::Error>;
}
Expand description
A trait indicating a type that can write bytes
Note that this is similar to std::io::Write
, but simplified for use in a
no_std
context.
Associated Types
Required methods
Writes all bytes from data
or fails