Lines Matching refs:R
41 pub struct ZlibEncoder<R> {
42 obj: R,
46 impl<R: BufRead> ZlibEncoder<R> {
49 pub fn new(r: R, level: crate::Compression) -> ZlibEncoder<R> { in new() argument
57 pub fn reset_encoder_data<R>(zlib: &mut ZlibEncoder<R>) { in reset_encoder_data() argument
61 impl<R> ZlibEncoder<R> {
69 pub fn reset(&mut self, r: R) -> R { in reset() argument
75 pub fn get_ref(&self) -> &R { in get_ref() argument
83 pub fn get_mut(&mut self) -> &mut R { in get_mut() argument
88 pub fn into_inner(self) -> R { in into_inner() argument
109 impl<R: BufRead> Read for ZlibEncoder<R> {
116 impl<R: AsyncRead + BufRead> AsyncRead for ZlibEncoder<R> {}
118 impl<R: BufRead + Write> Write for ZlibEncoder<R> {
129 impl<R: AsyncWrite + BufRead> AsyncWrite for ZlibEncoder<R> {
169 pub struct ZlibDecoder<R> {
170 obj: R,
174 impl<R: BufRead> ZlibDecoder<R> {
177 pub fn new(r: R) -> ZlibDecoder<R> { in new() argument
185 pub fn reset_decoder_data<R>(zlib: &mut ZlibDecoder<R>) { in reset_decoder_data() argument
189 impl<R> ZlibDecoder<R> {
197 pub fn reset(&mut self, r: R) -> R { in reset() argument
203 pub fn get_ref(&self) -> &R { in get_ref() argument
211 pub fn get_mut(&mut self) -> &mut R { in get_mut() argument
216 pub fn into_inner(self) -> R { in into_inner() argument
234 impl<R: BufRead> Read for ZlibDecoder<R> {
241 impl<R: AsyncRead + BufRead> AsyncRead for ZlibDecoder<R> {}
243 impl<R: BufRead + Write> Write for ZlibDecoder<R> {
254 impl<R: AsyncWrite + BufRead> AsyncWrite for ZlibDecoder<R> {