pub enum Bzip2Extension {
Bz2,
Tbz,
Tbz2,
TarBz2,
Unknown,
}Expand description
Bzip2 extension labels.
Variants§
Bz2
.bz2 payload.
Tbz
.tbz tar shorthand.
Tbz2
.tbz2 tar shorthand.
TarBz2
.tar.bz2 tar plus bzip2 extension.
Unknown
Unknown or unsupported bzip2 extension label.
Implementations§
Source§impl Bzip2Extension
impl Bzip2Extension
Sourcepub fn from_extension(extension: &str) -> Bzip2Extension
pub fn from_extension(extension: &str) -> Bzip2Extension
Detects a bzip2 extension label.
Trait Implementations§
Source§impl Clone for Bzip2Extension
impl Clone for Bzip2Extension
Source§fn clone(&self) -> Bzip2Extension
fn clone(&self) -> Bzip2Extension
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Bzip2Extension
impl Debug for Bzip2Extension
Source§impl Default for Bzip2Extension
impl Default for Bzip2Extension
Source§fn default() -> Bzip2Extension
fn default() -> Bzip2Extension
Returns the “default value” for a type. Read more
Source§impl Display for Bzip2Extension
impl Display for Bzip2Extension
Source§impl Hash for Bzip2Extension
impl Hash for Bzip2Extension
Source§impl Ord for Bzip2Extension
impl Ord for Bzip2Extension
Source§fn cmp(&self, other: &Bzip2Extension) -> Ordering
fn cmp(&self, other: &Bzip2Extension) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Bzip2Extension
impl PartialEq for Bzip2Extension
Source§fn eq(&self, other: &Bzip2Extension) -> bool
fn eq(&self, other: &Bzip2Extension) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Bzip2Extension
impl PartialOrd for Bzip2Extension
impl Copy for Bzip2Extension
impl Eq for Bzip2Extension
impl StructuralPartialEq for Bzip2Extension
Auto Trait Implementations§
impl Freeze for Bzip2Extension
impl RefUnwindSafe for Bzip2Extension
impl Send for Bzip2Extension
impl Sync for Bzip2Extension
impl Unpin for Bzip2Extension
impl UnsafeUnpin for Bzip2Extension
impl UnwindSafe for Bzip2Extension
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