pub trait Compress: Sized {
// Required methods
fn write_compressed<W: Write>(self, out: W) -> Result<()>;
fn read_compressed<R: Read>(source: R) -> Result<Self>;
}
Expand description
This traits enables reading and writing a compressed version.
Required Methods§
fn write_compressed<W: Write>(self, out: W) -> Result<()>
fn read_compressed<R: Read>(source: R) -> Result<Self>
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.