Lines Matching refs:W
36 pub struct ZlibEncoder<W: Write> {
37 inner: zio::Writer<W, Compress>,
40 impl<W: Write> ZlibEncoder<W> {
46 pub fn new(w: W, level: crate::Compression) -> ZlibEncoder<W> { in new() argument
53 pub fn get_ref(&self) -> &W { in get_ref() argument
61 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 ZlibEncoder<W> {
170 impl<W: AsyncWrite> AsyncWrite for ZlibEncoder<W> {
177 impl<W: Read + Write> Read for ZlibEncoder<W> {
184 impl<W: AsyncRead + AsyncWrite> AsyncRead for ZlibEncoder<W> {}
222 pub struct ZlibDecoder<W: Write> {
223 inner: zio::Writer<W, Decompress>,
226 impl<W: Write> ZlibDecoder<W> {
231 pub fn new(w: W) -> ZlibDecoder<W> { in new() argument
238 pub fn get_ref(&self) -> &W { in get_ref() argument
246 pub fn get_mut(&mut self) -> &mut W { in get_mut() argument
262 pub fn reset(&mut self, w: W) -> io::Result<W> { in reset() argument
302 pub fn finish(mut self) -> io::Result<W> { in finish() argument
323 impl<W: Write> Write for ZlibDecoder<W> {
334 impl<W: AsyncWrite> AsyncWrite for ZlibDecoder<W> {
341 impl<W: Read + Write> Read for ZlibDecoder<W> {
348 impl<W: AsyncRead + AsyncWrite> AsyncRead for ZlibDecoder<W> {}