Expand description
Core types for the Mosaic typesetting engine.
Implements the document model (manifest §5) and diagnostics surface (manifest §31). Every other crate depends on this one; nothing here depends on parsing, layout, or backends.
Structs§
- Content
Hash - Opaque content / dependency hash.
- Diagnostic
- A user-facing diagnostic (manifest §16, §31).
- Diagnostic
Code - Stable diagnostic code (e.g.
E041,W203, manifest §16). - Diagnostic
Note - Extra diagnostic context.
- Document
- The lowered semantic document graph (manifest §5, §6 stage 2).
- Node
- A semantic document node (manifest §5.1).
- NodeId
- Stable identifier for a document node.
- Source
Span - A byte-range location in a source file (manifest §6 stage 1).
- StyleId
- Identifier for a resolved style bundle.
- Suggestion
- Suggested source edit for a diagnostic.
Enums§
- Attr
Value - Attribute value carried on a semantic
Node. - Core
Error - Convenience top-level error type for crates that want a single
Resultalias without inventing their own. - Node
Kind - The kinds of nodes Mosaic recognises (manifest §5.1).
- Severity
- Diagnostic severity (manifest §31).
Functions§
- linecol
- Convert a byte offset into a 1-based
(line, column)pair.