pub enum XmlNode {
Element {
name: String,
attributes: Vec<(String, String)>,
children: Vec<XmlNode>,
offset: usize,
end_offset: usize,
},
Text {
content: String,
offset: usize,
end_offset: usize,
},
}Expand description
A parsed XML node from a supersigil-xml fence.
Variants§
Element
An XML element with name, attributes, children, and source offset.
Fields
Text
Raw text content (entity references already resolved).
Fields
Trait Implementations§
impl StructuralPartialEq for XmlNode
Auto Trait Implementations§
impl Freeze for XmlNode
impl RefUnwindSafe for XmlNode
impl Send for XmlNode
impl Sync for XmlNode
impl Unpin for XmlNode
impl UnsafeUnpin for XmlNode
impl UnwindSafe for XmlNode
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