#[repr(C)]pub struct XmlNode {
pub node_type: XmlTagName,
pub attributes: XmlAttributeMap,
pub children: XmlNodeVec,
pub text: XmlTextContent,
}Expand description
Represents one XML node tag
Fields§
§node_type: XmlTagNameType of the node
attributes: XmlAttributeMapAttributes of an XML node (note: not yet filtered and / or broken into function arguments!)
children: XmlNodeVecDirect children of this node
text: XmlTextContentString content of the node, i.e the “Hello” in <p>Hello</p>
Implementations§
Trait Implementations§
Source§impl Extend<XmlNode> for XmlNodeVec
impl Extend<XmlNode> for XmlNodeVec
Source§fn extend<T: IntoIterator<Item = XmlNode>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = XmlNode>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<XmlNode> for XmlNodeVec
impl FromIterator<XmlNode> for XmlNodeVec
Source§impl Ord for XmlNode
impl Ord for XmlNode
Source§impl PartialOrd for XmlNode
impl PartialOrd for XmlNode
impl Eq for XmlNode
impl StructuralPartialEq for XmlNode
Auto Trait Implementations§
impl Freeze for XmlNode
impl RefUnwindSafe for XmlNode
impl Send for XmlNode
impl Sync for XmlNode
impl Unpin for XmlNode
impl UnwindSafe for XmlNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more