Struct gzp::ZBuilder [−][src]
pub struct ZBuilder<F, W> where
F: FormatSpec + SyncWriter<W>,
W: Write + Send + 'static, { /* fields omitted */ }Expand description
Unified builder that returns a trait object
Implementations
Number of threads to use for compression
pub fn from_writer(self, writer: W) -> Box<dyn ZWriter> where
SyncZ<<F as SyncWriter<W>>::OutputWriter>: ZWriter,
pub fn from_writer(self, writer: W) -> Box<dyn ZWriter> where
SyncZ<<F as SyncWriter<W>>::OutputWriter>: ZWriter,
Create a ZWriter trait object from a writer.