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