pub trait Encode: Sized {
// Required methods
fn read<R>(r: &mut R) -> Result<Self>
where R: Read;
fn write<W>(&self, w: &mut W) -> Result<()>
where W: Write;
}
Required Methods§
fn read<R>(r: &mut R) -> Result<Self>where
R: Read,
fn write<W>(&self, w: &mut W) -> Result<()>where
W: Write,
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.