Enum zip::CompressionMethod [−][src]
pub enum CompressionMethod { Stored, Deflated, Bzip2, Unsupported(u16), }
Compression methods for the contents of a ZIP file.
Variants
Stored
The file is stored (no compression)
Deflated
The file is Deflated
Bzip2
File is compressed using BZIP2 algorithm
Unsupported(u16)
Unsupported compression method
Methods
impl CompressionMethod
[src]
impl CompressionMethod
pub fn from_u16(val: u16) -> CompressionMethod
[src]
pub fn from_u16(val: u16) -> CompressionMethod
Converts an u16 to its corresponding CompressionMethod
pub fn to_u16(self) -> u16
[src]
pub fn to_u16(self) -> u16
Converts a CompressionMethod to a u16
Trait Implementations
impl Copy for CompressionMethod
[src]
impl Copy for CompressionMethod
impl Clone for CompressionMethod
[src]
impl Clone for CompressionMethod
fn clone(&self) -> CompressionMethod
[src]
fn clone(&self) -> CompressionMethod
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for CompressionMethod
[src]
impl PartialEq for CompressionMethod
fn eq(&self, other: &CompressionMethod) -> bool
[src]
fn eq(&self, other: &CompressionMethod) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CompressionMethod) -> bool
[src]
fn ne(&self, other: &CompressionMethod) -> bool
This method tests for !=
.
impl Debug for CompressionMethod
[src]
impl Debug for CompressionMethod
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for CompressionMethod
[src]
impl Display for CompressionMethod
Auto Trait Implementations
impl Send for CompressionMethod
impl Send for CompressionMethod
impl Sync for CompressionMethod
impl Sync for CompressionMethod