Module taplo::dom[][src]

This module contains the DOM for TOML source.

Nodes in the DOM tree are typed and contain their character offsets this allows for inspecting values while knowing where they actually are.

When constructed from the root (which is practically always), the tree is semantically analyzed according to the TOML specification.

All the dotted keys and arrays of tables are also merged and collected into tables and arrays. The order is always preserved when possible.

The current DOM doesn’t have comment or whitespace information directly exposed, but these can be added anytime.

The DOM is immutable right now, and only allows for semantic analysis, but the ability to partially rewrite it is planned.

Modules

nodes
rewrite

Structs

ArrayNode
BoolNode
DateNode
Entries

New type that adds features to the regular index map, used by root and table nodes.

EntryNode
FloatNode
IntegerNode
KeyNode
Path
RootNode

The root of the DOM.

StringNode
TableNode

A table node is used for tables, arrays of tables, and also inline tables.

Enums

Error
IntegerRepr
Node
PathKey
StringKind
ValueNode

Traits

Cast

Casting allows constructing DOM nodes from syntax nodes.

NodeSyntax

Type Definitions

TextRanges