pub enum Compression {
None,
Zlib,
Bzp2,
Lz4,
}Expand description
A compression method understood by this library.
Variants§
None
No compression; the header’s compression field is all zeros.
Zlib
zlib, as defined by the standard.
Bzp2
bzip2, as defined by the standard.
Lz4
LZ4, a de-facto extension shared with Python asdf.
Implementations§
Source§impl Compression
impl Compression
Sourcepub fn from_name(name: &str) -> Result<Self>
pub fn from_name(name: &str) -> Result<Self>
Parse the four-byte identifier.
An empty name means no compression, matching the all-zero field.
Sourcepub fn is_available(self) -> bool
pub fn is_available(self) -> bool
Whether support for this method was compiled in.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
Source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
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 moreimpl Copy for Compression
Source§impl Debug for Compression
impl Debug for Compression
impl Eq for Compression
Source§impl PartialEq for Compression
impl PartialEq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnsafeUnpin for Compression
impl UnwindSafe for Compression
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