pub enum RawXmlNode {
Element(RawXmlElement),
Text(String),
CData(String),
Comment(String),
}Expand description
A raw XML node that can be preserved during round-trip.
Variants§
Element(RawXmlElement)
An XML element with name, attributes, and children.
Text(String)
Text content.
CData(String)
CDATA content.
Comment(String)
A comment.
Implementations§
Trait Implementations§
Source§impl Clone for RawXmlNode
impl Clone for RawXmlNode
Source§fn clone(&self) -> RawXmlNode
fn clone(&self) -> RawXmlNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawXmlNode
impl Debug for RawXmlNode
Source§impl PartialEq for RawXmlNode
impl PartialEq for RawXmlNode
impl StructuralPartialEq for RawXmlNode
Auto Trait Implementations§
impl Freeze for RawXmlNode
impl RefUnwindSafe for RawXmlNode
impl Send for RawXmlNode
impl Sync for RawXmlNode
impl Unpin for RawXmlNode
impl UnsafeUnpin for RawXmlNode
impl UnwindSafe for RawXmlNode
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