pub trait ZipWriter {
// Required methods
fn start_file(
&mut self,
name: &str,
options: SimpleFileOptions,
) -> Result<()>;
fn write_all(&mut self, buf: &[u8]) -> Result<()>;
fn finish(self: Box<Self>) -> Result<()>;
}Expand description
Trait for user-provided ZIP writers.
Mirrors the subset of zip::ZipWriter used when saving a workbook so that
callers can inject custom archive implementations.
Required Methods§
Sourcefn start_file(&mut self, name: &str, options: SimpleFileOptions) -> Result<()>
fn start_file(&mut self, name: &str, options: SimpleFileOptions) -> Result<()>
Start a new file in the archive.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".