Trait CompressionExt

Source
pub trait CompressionExt {
    // Required method
    fn from_path<S: AsRef<OsStr> + ?Sized>(p: &S) -> Self;
}

Required Methods§

Source

fn from_path<S: AsRef<OsStr> + ?Sized>(p: &S) -> 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.

Implementations on Foreign Types§

Source§

impl CompressionExt for Format

Source§

fn from_path<S: AsRef<OsStr> + ?Sized>(p: &S) -> Self

Attempts to infer the compression type from the file extension. If the extension is not known, then Uncompressed is returned.

Implementors§