[−][src]Enum magnesium::XmlElement
An element within an XML structure.
Variants
An opening tag with a name and some attributes.
If the XML is well formed, then there will be an EndTag with a matching name later on. In between there can be any number of sub-entries.
Fields of StartTag
name: &'s str
Name of this tag.
attrs: &'s str
Attribute string.
Parse this with a
TagAttributeIterator
.
Closes the StartTag
of the same name.
An "empty" tag has no inner content, it opens and immediate closes.
Fields of EmptyTag
name: &'s str
The tag's name.
attrs: &'s str
The tag's attribute string.
Parse this with a
TagAttributeIterator
.
Text between tags, including Cdata entries.
Comments between tags in <!--
and -->
.
Trait Implementations
impl<'s> Clone for XmlElement<'s>
[src]
fn clone(&self) -> XmlElement<'s>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'s> Copy for XmlElement<'s>
[src]
impl<'s> Debug for XmlElement<'s>
[src]
impl<'s> Eq for XmlElement<'s>
[src]
impl<'s> Hash for XmlElement<'s>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'s> PartialEq<XmlElement<'s>> for XmlElement<'s>
[src]
fn eq(&self, other: &XmlElement<'s>) -> bool
[src]
fn ne(&self, other: &XmlElement<'s>) -> bool
[src]
impl<'s> StructuralEq for XmlElement<'s>
[src]
impl<'s> StructuralPartialEq for XmlElement<'s>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,