Enum xcompress::ArchiveFormat
source · pub enum ArchiveFormat {
Show 19 variants
Z,
Zip,
Gzip,
Bzip2,
Lz,
Xz,
Lzma,
P7z,
Tar,
TarZ,
TarGzip,
TarBzip2,
TarLz,
TarXz,
TarLzma,
Tar7z,
TarZstd,
Rar,
Zstd,
}
Variants
Z
Zip
Gzip
Bzip2
Lz
Xz
Lzma
P7z
Tar
TarZ
TarGzip
TarBzip2
TarLz
TarXz
TarLzma
Tar7z
TarZstd
Rar
Zstd
Implementations
sourceimpl ArchiveFormat
impl ArchiveFormat
pub fn get_archive_format_from_file_path<P: AsRef<Path>>(
file_path: P
) -> Result<ArchiveFormat, &'static str>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArchiveFormat
impl Send for ArchiveFormat
impl Sync for ArchiveFormat
impl Unpin for ArchiveFormat
impl UnwindSafe for ArchiveFormat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more