pub trait Write {
type Output;
type Error;
// Required methods
fn write(&mut self, data: u8) -> Result<(), Self::Error>;
fn finish(self) -> Result<Self::Output, Self::Error>;
}
Expand description
Trait for writing bytes.
pub trait Write {
type Output;
type Error;
// Required methods
fn write(&mut self, data: u8) -> Result<(), Self::Error>;
fn finish(self) -> Result<Self::Output, Self::Error>;
}
Trait for writing bytes.