pub enum Lz4Extension {
Lz4,
TarLz4,
Unknown,
}Expand description
LZ4 extension labels.
Variants§
Lz4
.lz4 payload.
TarLz4
.tar.lz4 tar plus LZ4 extension.
Unknown
Unknown or unsupported LZ4 extension label.
Implementations§
Source§impl Lz4Extension
impl Lz4Extension
Sourcepub fn from_extension(extension: &str) -> Lz4Extension
pub fn from_extension(extension: &str) -> Lz4Extension
Detects an LZ4 extension label.
Trait Implementations§
Source§impl Clone for Lz4Extension
impl Clone for Lz4Extension
Source§fn clone(&self) -> Lz4Extension
fn clone(&self) -> Lz4Extension
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 Lz4Extension
impl Debug for Lz4Extension
Source§impl Default for Lz4Extension
impl Default for Lz4Extension
Source§fn default() -> Lz4Extension
fn default() -> Lz4Extension
Returns the “default value” for a type. Read more
Source§impl Display for Lz4Extension
impl Display for Lz4Extension
Source§impl Hash for Lz4Extension
impl Hash for Lz4Extension
Source§impl Ord for Lz4Extension
impl Ord for Lz4Extension
Source§fn cmp(&self, other: &Lz4Extension) -> Ordering
fn cmp(&self, other: &Lz4Extension) -> 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 Lz4Extension
impl PartialEq for Lz4Extension
Source§fn eq(&self, other: &Lz4Extension) -> bool
fn eq(&self, other: &Lz4Extension) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Lz4Extension
impl PartialOrd for Lz4Extension
impl Copy for Lz4Extension
impl Eq for Lz4Extension
impl StructuralPartialEq for Lz4Extension
Auto Trait Implementations§
impl Freeze for Lz4Extension
impl RefUnwindSafe for Lz4Extension
impl Send for Lz4Extension
impl Sync for Lz4Extension
impl Unpin for Lz4Extension
impl UnsafeUnpin for Lz4Extension
impl UnwindSafe for Lz4Extension
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