pub trait Writer: Sized {
// Required methods
fn write_one(self, v: u8) -> Result<Self>;
fn write_many(self, v: &[u8]) -> Result<Self>;
fn capacity(&self) -> usize;
}
Required Methods§
fn write_one(self, v: u8) -> Result<Self>
fn write_many(self, v: &[u8]) -> Result<Self>
fn capacity(&self) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.