pub fn detect_compression_from_extension(path: &Path) -> CompressionExpand description
Detect compression format from a file extension.
Returns Compression::Gzip for .gz, Compression::Zstd for
.zst, Compression::None otherwise.
pub fn detect_compression_from_extension(path: &Path) -> CompressionDetect compression format from a file extension.
Returns Compression::Gzip for .gz, Compression::Zstd for
.zst, Compression::None otherwise.