pub fn with_prepared_dictionary(
        writer: W,
        dictionary: &EncoderDictionary<'_>,
    ) -> io::Result<Self> {
        let encoder = raw::Encoder::with_prepared_dictionary(dictionary)?;
        let writer = zio::Writer::new(writer, encoder);
        Ok(Encoder { writer })
    }
/// Creates a new encoder, using an existing prepared `EncoderDictionary`.
///
/// (Provides better compression ratio for small files,
/// but requires the dictionary to be present during decompression.)
Creates a new encoder, using an existing prepared `EncoderDictionary`.
(Provides better compression ratio for small files,
but requires the dictionary to be present during decompression.)
Creates a new encoder using an existing prepared ` EncoderDictionary ` . ( Provides better compression ratio for small files but requires the dictionary to be present during decompression . )
pub fn with_prepared_dictionary(
        writer: W,
        dictionary: &EncoderDictionary<'_>,
    ) -> io::Result<Self> {
        let encoder = raw::Encoder::with_prepared_dictionary(dictionary)?;
        let writer = zio::Writer::new(writer, encoder);
        Ok(Encoder { writer })
    }
pub fn with_prepared_dictionary ( writer : W , dictionary : & EncoderDictionary < ' _ > , ) -> io :: Result < Self > { let encoder = raw :: Encoder :: with_prepared_dictionary ( dictionary ) ? ; let writer = zio :: Writer :: new ( writer , encoder ) ; Ok ( Encoder { writer } ) }
Creates a new encoder, using an existing prepared `EncoderDictionary`.
Creates a new encoder using an existing prepared ` EncoderDictionary ` .
writer
W
dictionary
&EncoderDictionary<'_>
writer
W
dictionary
&EncoderDictionary<'_>