MCPcopy Index your code
hub / github.com/RustPython/RustPython / compress

Method compress

crates/stdlib/src/zlib.rs:142–149  ·  view source on GitHub ↗
(self, level: Compression)

Source from the content-addressed store, hash-verified

140 }
141 }
142 fn compress(self, level: Compression) -> Compress {
143 match self {
144 Self::Standard { header, wbits } => {
145 Compress::new_with_window_bits(level, header, wbits)
146 }
147 Self::Gzip { wbits } => Compress::new_gzip(level, wbits),
148 }
149 }
150 }
151
152 #[derive(FromArgs)]

Callers 2

compressFunction · 0.45
compressobjFunction · 0.45

Calls 2

with_refMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected