Expand description
Renders desired text, structured, and Markdown documents, and reconciles them with existing source while keeping the parts the user owns.
ModulesΒ§
- annotation π
- Inline annotations embedded in structured document values.
- backend π
- Parsing, building and reconciling documents for a format.
- columns π
- A positive column count.
- entries π
- Object entries in render order.
- error π
- Error types of the crate.
- format π
- The output format of a structured document, its capabilities and its dispatch to a backend.
- header π
- The generated comment at the start of a document.
- json π
- JSON and JSON5 support: the dialects, the syntax tree, and the backend.
- line_
ending π - Line ending settings, detection and conversion.
- markdown π
- Markdown documents: rendering whole documents and reconciling selected regions.
- merge π
- The format independent merge of a desired tree into a current one.
- ownership π
- Ownership declarations and the claims they make on key paths.
- path π
- Locations inside a structured value, for error messages.
- scalar π
- Leaf values of an annotated tree.
- source π
- The current source of a document, decoded once.
- spec π
- The wire shape of a document and its dispatch to a payload type.
- text π
- Plain text documents.
- toml π
- TOML support: the backend, its node edits, and the canonical rendering.
- yaml π
- YAML support: canonical rendering of a whole tree, the source tree that edits existing YAML, and the backend.
StructsΒ§
- Heading
Level - A heading level from 1 to 6.
- Inline
Width - Widest
key = { ... }line, in columns, that stays an inline table. Wider tables are promoted to[table]sections. - Json
Error - Error returned while parsing a JSON or JSON5 document.
- KeyPath
- The location of a value inside a document, such as
jobs.build.steps[2]. - Managed
Path - A nonempty key path selected for management in a structured document.
- Markdown
Spec - A Markdown document.
- Marker
Name Buf - An owned marker name, validated when it is decoded.
- Siblings
- A container that gains a new key, which should look like its siblings.
- Structured
Spec - A structured (JSON, JSON5, TOML, or YAML) document.
- Text
Spec - A plain text document, rendered node by node.
- Wrap
- A positive column count for wrapping text.
EnumsΒ§
- Annotation
Error - Error returned while decoding inline annotation markers.
- Columns
Error - Error returned for an invalid column count.
- Comment
Syntax - Comment delimiter for plain text formats that support comments.
- Document
Error - Error returned by document validation, rendering, and reconciliation.
- Document
Node - A comment or literal text node in a plain text document.
- Document
Ownership - Ownership mode shared by structured document formats.
- Document
Spec - A complete desired document or a source-preserving partial document.
- Feature
- A capability a format may lack.
- Format
- Output syntax for a structured document.
- Internal
Error - A failure that is a bug in this crate, not a problem with the input.
- Json
Error Kind - The reason a JSON or JSON5 document failed to parse.
- Line
Ending Error - Error returned while resolving a documentβs line ending.
- Line
Ending Spec - The line ending setting of a document on the wire.
- Markdown
Block - A block-level Markdown element.
- Markdown
Error - Error returned while validating, rendering, or reconciling Markdown.
- Markdown
Inline - Inline Markdown content within a block.
- Markdown
Ownership - Ownership mode for a Markdown document.
- Markdown
Selector - A selector naming one region of an existing Markdown document to manage.
- Marker
Field - A field of an annotation marker.
- Merge
Error - Error returned while merging a desired document into a current one.
- Ownership
Error - Error returned while validating ownership declarations.
- Path
Syntax Error - What is wrong in the text of an ownership path.
- Segment
- One step of a
KeyPath. - Text
Error - Error returned while rendering a plain text documentβs comment nodes.
- Toml
Error - Error returned while rendering or reconciling a TOML document.
- Value
Error - Error returned while shaping a generic value for a structured format.
- Yaml
Error - Error returned while reading a YAML source tree.
FunctionsΒ§
- is_
generated - Whether the first line of
contentis a comment that holds the generated marker. Every comment syntax is accepted.