Struct flate2::Compression [−][src]
pub struct Compression(_);
Expand description
When compressing data, the compression level can be specified by a value in this enum.
Implementations
Creates a new description of the compression level with an explicitly specified integer.
The integer here is typically on a scale of 0-9 where 0 means “no compression” and 9 means “take as long as you’d like”.
No compression is to be performed, this may actually inflate data slightly when encoding.
Optimize for the best speed of encoding.
Optimize for the size of data being encoded.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnwindSafe for Compression
Blanket Implementations
Mutably borrows from an owned value. Read more