Enum Compressor

#[non_exhaustive]
pub enum Compressor

An enum to store each compression algorithm.

Variants

Uncompressed(Uncompressed)
Lzw(Lzw)
Deflate(Deflate)
Packbits(Packbits)

Trait Implementations

impl CompressionAlgorithm for Compressor

fn write_to<W: Write>(&mut self, writer: &mut W, bytes: &[u8]) -> Result<u64, Error>

impl Default for Compressor

fn default() -> Self

The default compression strategy does not apply any compression.

Auto Trait Implementations

impl Freeze for Compressor

impl RefUnwindSafe for Compressor

impl Send for Compressor

impl Sync for Compressor

impl Unpin for Compressor

impl UnsafeUnpin for Compressor

impl UnwindSafe for Compressor

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Compressor where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Compressor where ST: ?Sized, DT: ?Sized,

impl<T> Any for Compressor where T: 'static + ?Sized,

impl<T> Borrow<T> for Compressor where T: ?Sized,

impl<T> BorrowMut<T> for Compressor where T: ?Sized,

impl<T> From<T> for Compressor

impl<T> Read<Exclusive, BecauseExclusive> for Compressor where T: ?Sized,

impl<T, U> Into<U> for Compressor where U: From<T>,

impl<T, U> TryFrom<U> for Compressor where U: Into<T>,

impl<T, U> TryInto<U> for Compressor where U: TryFrom<T>,