pub enum NodeData {
Text(String),
Element {
tag: String,
attributes: Option<FxHashMap<String, String>>,
children: Vec<NodeData>,
},
XmlNode(Node),
}Expand description
Recursive representation for building XML nodes.
Port of the Perl data = string | [$tag, {attrs}, @children] convention.
Variants§
Text(String)
A text node.
Element
An element node with tag (prefix:localname), optional attributes, and children.
XmlNode(Node)
A reference to an existing XML node (will be cloned when added).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NodeData
impl !Send for NodeData
impl !Sync for NodeData
impl !UnwindSafe for NodeData
impl Freeze for NodeData
impl Unpin for NodeData
impl UnsafeUnpin for NodeData
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