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§
- Attribute
Record - An attribute name-value-namespace triple from a DOM event.
- DomDeserializer
- DOM deserializer.
- RawMarkup
- A string containing raw markup captured verbatim from the source.
- Scalar
Buffer - Buffer for formatting scalar values without heap allocation for small values. Uses a small inline buffer, falling back to heap for larger values.
- Trace
Fmt - Newtype for XML-like trace formatting of DOM events.
Enums§
- DomDeserialize
Error - Error type for DOM deserialization.
- DomEvent
- Events emitted by a DOM parser.
- DomSerialize
Error - Error produced by the DOM serializer.
Traits§
- DomParser
- A parser that emits DOM events from a tree-structured document.
- DomParser
Ext - Extension trait adding convenience methods to any
DomParser. - DomSerializer
- Low-level serializer interface for DOM-based formats (XML, HTML).
- Write
Scalar - 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§
- Float
Formatter - A function that formats a floating-point number to a writer.