Skip to main content

compress_with_path

Function compress_with_path 

Source
pub fn compress_with_path<R: Read, W: Write>(
    source: R,
    target: W,
    path: &Path,
    level: CompressionLevel,
)
Available on crate feature std only.
Expand description

Convenience function to compress some source into a target using a path-based file-type hint.