pub enum NodeType {
Head,
Element {
name: XmlLocation,
attributes: AttributeRange,
},
Text(XmlLocation),
}Variants§
Trait Implementations§
Source§impl Debug for NodeType
Custom implementation of the Debug trait for NodeType.
impl Debug for NodeType
Custom implementation of the Debug trait for NodeType.
This implementation provides human-readable debug output for the different
variants of NodeType:
Root: Displays as “Root”Element: Displays as “Element(name:the_name_range, attributes:the_attributes_range)”Text: Displays as “Text(text_content_range)”
This is useful for debugging and logging purposes when working with the node tree structure.
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
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