pub enum Node<'xml> {
Attribute(Attribute<'xml>),
AttributeValue(Cow<'xml, str>),
Close {
prefix: Option<&'xml str>,
local: &'xml str,
},
Text(Cow<'xml, str>),
Open(Element<'xml>),
}Expand description
An XML node during deserialization
Variants§
Attribute(Attribute<'xml>)
An attribute name (value follows in a separate AttributeValue node)
AttributeValue(Cow<'xml, str>)
The value of the preceding Attribute node
Close
Closing tag for an element
Text(Cow<'xml, str>)
Text content
Open(Element<'xml>)
Opening tag for an element
Trait Implementations§
Auto Trait Implementations§
impl<'xml> Freeze for Node<'xml>
impl<'xml> RefUnwindSafe for Node<'xml>
impl<'xml> Send for Node<'xml>
impl<'xml> Sync for Node<'xml>
impl<'xml> Unpin for Node<'xml>
impl<'xml> UnsafeUnpin for Node<'xml>
impl<'xml> UnwindSafe for Node<'xml>
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