pub enum Format {
Gzip,
Zlib,
Deflate,
}
Expand description
The output file format to use to store data compressed with Zopfli.
Variants§
Gzip
The gzip file format, as defined in RFC 1952.
This file format can be easily decompressed with the gzip program.
Zlib
The zlib file format, as defined in RFC 1950.
The zlib format has less header overhead than gzip, but it stores less metadata.
Deflate
The raw DEFLATE stream format, as defined in RFC 1951.
Raw DEFLATE streams are not meant to be stored as-is because they lack error detection and correction metadata. They are usually embedded in other file formats, such as gzip and zlib.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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