We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6b4c60 + 936aa35 commit 6fbd6d2Copy full SHA for 6fbd6d2
src/lib.rs
@@ -192,6 +192,10 @@ impl Compression {
192
///
193
/// The integer here is typically on a scale of 0-9 where 0 means "no
194
/// compression" and 9 means "take as long as you'd like".
195
+ ///
196
+ /// It is worth noting that `flate2` supports both `zlib` and `miniz`
197
+ /// backends for compression, where `miniz` also provides a level `10` of
198
+ /// compression.
199
pub const fn new(level: u32) -> Compression {
200
Compression(level)
201
}
@@ -213,7 +217,7 @@ impl Compression {
213
217
214
218
215
219
/// Returns an integer representing the compression level, typically on a
216
- /// scale of 0-9
220
+ /// scale of 0-9. With `miniz` backend, level 10 is also possible.
221
pub fn level(&self) -> u32 {
222
self.0
223
0 commit comments