#[repr(C)]pub struct FastDom {
pub node_hierarchy: NodeHierarchyItemVec,
pub node_data: NodeDataVec,
pub css: CssWithNodeIdVec,
}Expand description
Arena-based DOM for bulk construction (e.g. XML/XHTML parsing). The hierarchy and node data are stored in two parallel flat vectors, skipping the tree→arena conversion step entirely.
Use FastDom::into_dom() to convert to a tree-based Dom if needed.
StyledDom::create_from_fast_dom() consumes this directly without conversion.
Fields§
§node_hierarchy: NodeHierarchyItemVecFlat arena of parent/child/sibling relationships.
node_data: NodeDataVecFlat arena of node data, parallel to node_hierarchy.
css: CssWithNodeIdVecCSS stylesheets with the node ID they scope to.
Trait Implementations§
Source§impl PartialOrd for FastDom
impl PartialOrd for FastDom
impl StructuralPartialEq for FastDom
Auto Trait Implementations§
impl Freeze for FastDom
impl RefUnwindSafe for FastDom
impl Send for FastDom
impl Sync for FastDom
impl Unpin for FastDom
impl UnsafeUnpin for FastDom
impl UnwindSafe for FastDom
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more