Expand description
Page-based XML document buffer for XPath 2.0 evaluation.
This module implements BufferDocument, a compact, cache-friendly XML document
representation built on a flat array of 16-byte Node structs with power-of-2
page addressing.
§Feature gate
The entire module is compiled only when the xsd11 feature is enabled.
Re-exports§
pub use buffer::BufferDocument;pub use builder::BufferDocumentBuilder;pub use element_index::ElementIndex;pub use error::BufferDocumentError;pub use namespace::NamespaceChain;pub use namespace::NamespaceNode;pub use namespace::NamespacePageFactory;pub use namespace::NsRef;pub use namespace::NS_PAGE_MASK;pub use namespace::NS_PAGE_SHIFT;pub use namespace::NS_PAGE_SIZE;pub use node::node_ref_from;pub use node::page_of;pub use node::slot_of;pub use node::Node;pub use node::NodeType;pub use node::NULL;pub use node::PAGE_MASK;pub use node::PAGE_SHIFT;pub use node::PAGE_SIZE;pub use page::NodePages;pub use qname::QNameAtom;pub use qname::QNameTable;pub use qname::EMPTY_QNAME;pub use source_spans::NodeSourceSpans;pub use strings::StringStore;pub use type_remap::BindingRemapTable;pub use type_remap::NodeSchemaBinding;pub use typed_builder::build_typed_document;pub use typed_builder::SilentValidationSink;
Modules§
- buffer
- Top-level
BufferDocumentstruct assembling all storage primitives. - builder
- Document builder — core push API and quick-xml adapter.
- element_
index - Element index by local-name hash for the document buffer.
- error
- namespace
- Namespace chain storage for the document buffer.
- navigator
- Cursor-based
DomNavigatoroverBufferDocument. - node
- page
- qname
- QName atomization for the document buffer.
- source_
spans - Per-node source span tracking for the document buffer.
- strings
- type_
remap - Binding remap table for mapping 20-bit node indices to full
NodeSchemaBindingvalues. - typed_
builder - Schema-aware document builder.
Structs§
- Buffer
Document Options - Configuration for
BufferDocumentconstruction.
Enums§
- Document
Kind - Whether the document is a complete XML document or a validation fragment.