Expand description
Safe ownership boundary around the pinned libmandoc parser.
The C shim completes and copies a parse before returning. Rust therefore
never observes libmandoc’s private roff_node layout, and the global C
parser state is serialized inside this crate.
Structs§
- Diagnostic
- One non-fatal finding emitted while parsing a manual source.
- Document
- Complete owned output of the low-level parser, excluding diagnostics.
- Metadata
- Metadata copied from a completed libmandoc parse.
- Node
- An owned syntax node with no pointers into the C parser.
- Node
Flags - Source and renderer flags needed by a lowering or rendering pass.
- Parse
Error - File-level failure reported without leaking C or runtime diagnostics.
- Parse
Options - Configuration for one
Parserinstance. - Parse
Report - Completed owned document and any non-fatal parser findings.
- Parser
- Reusable parser with an explicit input policy.
- Source
Location - Optional source location extracted from a libmandoc diagnostic prefix.
- Table
Cell - Owned payload of one cell in a libmandoc table row.
Enums§
- Compression
- How the parser receives a manual source’s top-level compression.
- Diagnostic
Level - Severity assigned by libmandoc’s validation diagnostics.
- Display
Kind - Whether an mdoc display preserves source line layout.
- Include
Policy - Policy controlling whether
.sorequests may resolve files. - Macro
Set - High-level macro package detected by libmandoc.
- Node
Kind - Renderer-neutral node role copied from the libmandoc syntax tree.
- Normalized
List Kind - Normalized mdoc list behavior copied independently of upstream enum values.
- Parse
Error Kind - Categorizes a source-level failure without exposing C implementation details.
- Table
Alignment - Horizontal alignment retained for one parsed tbl(7) cell.
Constants§
- LIBMANDOC_
VERSION - Pinned upstream version compiled by this crate’s build script.