pub struct XmlElement {
pub name: String,
pub attributes: Vec<(String, String)>,
pub children: Vec<XmlNode>,
}Expand description
An XML element: a name, ordered attributes, and ordered children. Groups carry child elements; leaves
carry a single XmlNode::Text child (or none, for an empty element).
Fields§
§name: StringThe element (tag) name. Must be a valid XML Name; the COBOL adapter sanitizes names that begin
with a digit.
attributes: Vec<(String, String)>Ordered (name, value) attributes. Emitted in this exact order (determinism).
children: Vec<XmlNode>Ordered children.
Implementations§
Trait Implementations§
Source§impl Clone for XmlElement
impl Clone for XmlElement
Source§fn clone(&self) -> XmlElement
fn clone(&self) -> XmlElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 XmlElement
impl Debug for XmlElement
impl Eq for XmlElement
Source§impl PartialEq for XmlElement
impl PartialEq for XmlElement
Source§fn eq(&self, other: &XmlElement) -> bool
fn eq(&self, other: &XmlElement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XmlElement
Auto Trait Implementations§
impl Freeze for XmlElement
impl RefUnwindSafe for XmlElement
impl Send for XmlElement
impl Sync for XmlElement
impl Unpin for XmlElement
impl UnsafeUnpin for XmlElement
impl UnwindSafe for XmlElement
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