Lines Matching refs:W
35 pub struct DeflateEncoder<W: Write> {
36 inner: zio::Writer<W, Compress>,
39 impl<W: Write> DeflateEncoder<W> {
45 pub fn new(w: W, level: crate::Compression) -> DeflateEncoder<W> { in new() argument
52 pub fn get_ref(&self) -> &W { in get_ref() argument
60 pub fn get_mut(&mut self) -> &mut W { in get_mut() argument
80 pub fn reset(&mut self, w: W) -> io::Result<W> { in reset() argument
120 pub fn finish(mut self) -> io::Result<W> { in finish() argument
137 pub fn flush_finish(mut self) -> io::Result<W> { in flush_finish() argument
159 impl<W: Write> Write for DeflateEncoder<W> {
170 impl<W: AsyncWrite> AsyncWrite for DeflateEncoder<W> {
177 impl<W: Read + Write> Read for DeflateEncoder<W> {
184 impl<W: AsyncRead + AsyncWrite> AsyncRead for DeflateEncoder<W> {}
220 pub struct DeflateDecoder<W: Write> {
221 inner: zio::Writer<W, Decompress>,
224 impl<W: Write> DeflateDecoder<W> {
229 pub fn new(w: W) -> DeflateDecoder<W> { in new() argument
236 pub fn get_ref(&self) -> &W { in get_ref() argument
244 pub fn get_mut(&mut self) -> &mut W { in get_mut() argument
263 pub fn reset(&mut self, w: W) -> io::Result<W> { in reset() argument
303 pub fn finish(mut self) -> io::Result<W> { in finish() argument
324 impl<W: Write> Write for DeflateDecoder<W> {
335 impl<W: AsyncWrite> AsyncWrite for DeflateDecoder<W> {
342 impl<W: Read + Write> Read for DeflateDecoder<W> {
349 impl<W: AsyncRead + AsyncWrite> AsyncRead for DeflateDecoder<W> {}