Struct simple_xml_builder::XMLElement [−][src]
pub struct XMLElement { /* fields omitted */ }
Expand description
Represents an XML element
Implementations
Creates a new empty XML element using the given name for the tag.
Adds an attribute to the XML element. The attribute value can take any
type which implements fmt::Display
.
Adds a child element to the XML element. The new child will be placed after previously added children.
This method may only be called on an element that has children or is empty.
Panics
Panics if the element contains text.
Adds text to the XML element.
This method may only be called on an empty element.
Panics
Panics if the element is not empty.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for XMLElement
impl Send for XMLElement
impl Sync for XMLElement
impl Unpin for XMLElement
impl UnwindSafe for XMLElement
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.