pub enum Format {
Tar,
TarBzip2,
TarGzip,
TarLz4,
TarXz,
TarZstd,
}
Expand description
Supported formats.
Variants§
Tar
tarball
TarBzip2
bzip2-compressed tarball
TarGzip
gzip-compressed tarball
TarLz4
lz4-compressed tarball
TarXz
xz-compressed tarball
TarZstd
zstd-compressed tarball
Implementations§
Source§impl Format
impl Format
Sourcepub const fn description(&self) -> &'static str
pub const fn description(&self) -> &'static str
Returns the format description, like gzip-compressed tarball.
Sourcepub fn file_endings(&self) -> Vec<&'static str>
pub fn file_endings(&self) -> Vec<&'static str>
Returns the supported file endings for format auto-detection.
Sourcepub fn all_file_endings() -> Vec<String>
pub fn all_file_endings() -> Vec<String>
Returns all pre-formatted formats in the form of name description [endings..]
.
Trait Implementations§
impl Copy for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more