File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,10 @@ impl Compression {
192
192
///
193
193
/// The integer here is typically on a scale of 0-9 where 0 means "no
194
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.
195
199
pub const fn new ( level : u32 ) -> Compression {
196
200
Compression ( level)
197
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.
217
221
pub fn level ( & self ) -> u32 {
218
222
self . 0
219
223
}
You can’t perform that action at this time.
0 commit comments