moonbitlang/docx2html/zip does not have a README file

    ZipArchive

    pub struct ZipArchive {
    // private fields
    } derive(Eq,
    Debug
    )

    In-memory ZIP archive used to read DOCX parts. OPC part-name comparison is case-insensitive, while canonical_names retains the archive's exact spelling so preservation edits always address the physical entry.

    ZipArchive::equal

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn ZipArchive::equal(ZipArchive, ZipArchive) -> Bool

    ZipArchive::exists

    fn ZipArchive::exists(self : ZipArchive, path : String) -> Bool

    Returns whether a ZIP entry exists.

    ZipArchive::logical_path

    fn ZipArchive::logical_path(self : ZipArchive, path : String) -> String?

    Resolves either an exact physical ZIP spelling or a logical OPC name to the canonical logical part name carried by this archive.

    ZipArchive::not_equal

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn ZipArchive::not_equal(x : ZipArchive, y : ZipArchive) -> Bool

    ZipArchive::read_bytes

    fn ZipArchive::read_bytes(self : ZipArchive, path : String) -> BytesView?

    Reads a ZIP entry as bytes.

    ZipArchive::read_text

    fn ZipArchive::read_text(self : ZipArchive, path : String) -> String? raise
    DocxError

    Reads a ZIP entry as UTF-8 text.

    ZipArchive::resolve_path

    fn ZipArchive::resolve_path(self : ZipArchive, path : String) -> String?

    Resolves an OPC path to the archive's exact entry spelling.

    ZipArchive::to_repr

    #deprecated("implicit trait-method promotion is being removed; call via the trait")
    fn ZipArchive::to_repr(ZipArchive) ->
    Repr

    join_zip_path

    fn join_zip_path(parts : Array[String]) -> String

    Joins ZIP path components with normalized separators.

    open_zip

    fn open_zip(data : BytesView) -> ZipArchive raise
    DocxError

    Opens ZIP bytes into an in-memory archive.

    open_zip_archive

    Builds the DOCX reader's immutable part view from an already materialized archive. Entry names remain fail-closed: the map view must never silently collapse duplicate ZIP records.

    split_zip_path

    fn split_zip_path(path : String) -> (String, String)

    Splits a ZIP path into directory and filename.

    zip_archive

    fn zip_archive(source : Map[String, BytesView]) -> ZipArchive raise
    DocxError

    Builds an owned part view and rejects case-equivalent aliases before they can collapse into the canonical lookup index.

    zip_archive_entries

    fn zip_archive_entries(source : Iter[(String, BytesView)]) -> ZipArchive raise
    DocxError

    Builds an archive view from a collision-independent iterator. This is the preferred entry point for already validated or adversarial entry streams; the map overload remains a convenience for programmatic callers.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io