Crate facet_dom

Crate facet_dom 

Source
Expand description

Tree-based (DOM) serialization and deserialization for facet.

This crate provides serializers and deserializers designed for tree-structured documents like HTML and XML, where:

  • Nodes have a tag name
  • Nodes can have attributes (key-value pairs)
  • Nodes can have children (mixed content: text and child elements interleaved)

Modules§

naming
Name conversion utilities for DOM serialization/deserialization.

Macros§

trace
Emit a trace-level log message (no-op version).

Structs§

AttributeRecord
An attribute name-value-namespace triple from a DOM event.
DomDeserializer
DOM deserializer.
RawMarkup
A string containing raw markup captured verbatim from the source.
ScalarBuffer
Buffer for formatting scalar values without heap allocation for small values. Uses a small inline buffer, falling back to heap for larger values.
TraceFmt
Newtype for XML-like trace formatting of DOM events.

Enums§

DomDeserializeError
Error type for DOM deserialization.
DomEvent
Events emitted by a DOM parser.
DomSerializeError
Error produced by the DOM serializer.

Traits§

DomParser
A parser that emits DOM events from a tree-structured document.
DomParserExt
Extension trait adding convenience methods to any DomParser.
DomSerializer
Low-level serializer interface for DOM-based formats (XML, HTML).
WriteScalar
Extension trait for writing scalar values directly to output.

Functions§

is_raw_markup
Check if a shape is the RawMarkup type.
serialize
Serialize a value using the DOM serializer.

Type Aliases§

FloatFormatter
A function that formats a floating-point number to a writer.