//! `PackageWriter` trait — abstract write access to a DOCX/OPC package.
use crateResult;
use cratePackageSource;
/// Write access to a DOCX package (ZIP/OPC archive).
///
/// Implemented by [`ZipPackageWriter`] for file/stream-backed output.
///
/// The typical rendering workflow:
/// 1. Call `write_part` for each modified XML part.
/// 2. Call `copy_part` for every unmodified part from the source.
/// 3. Call `finish` to flush and seal the archive.
///
/// [`ZipPackageWriter`]: crate::package::ZipPackageWriter