[][src]Enum sxd_xpath_visitor::nodeset::Node

pub enum Node<'d> {
    Root(Root<'d>),
    Element(Element<'d>),
    Attribute(Attribute<'d>),
    Text(Text<'d>),
    Comment(Comment<'d>),
    Namespace(Namespace<'d>),
    ProcessingInstruction(ProcessingInstruction<'d>),
}

Any of the various types of nodes found in an XML document.

Variants

Root(Root<'d>)
Element(Element<'d>)
Attribute(Attribute<'d>)
Text(Text<'d>)
Comment(Comment<'d>)
Namespace(Namespace<'d>)
ProcessingInstruction(ProcessingInstruction<'d>)

Implementations

impl<'d> Node<'d>[src]

pub fn document(&self) -> Document<'d>[src]

The document to which this node belongs.

pub fn prefixed_name(&self) -> Option<String>[src]

The name of the node, including a prefix that corresponds to the namespace, if any.

pub fn expanded_name(&self) -> Option<QName<'d>>[src]

Returns the expanded name of the node, if any.

pub fn parent(&self) -> Option<Node<'d>>[src]

Returns the parent of the node, if any.

pub fn children(&self) -> Vec<Node<'d>>[src]

Returns the children of the node, if any.

pub fn preceding_siblings(&self) -> Vec<Node<'d>>[src]

Returns the nodes with the same parent that occur before this node.

pub fn following_siblings(&self) -> Vec<Node<'d>>[src]

Returns the nodes with the same parent that occur after this node.

pub fn string_value(&self) -> String[src]

Returns the string value of this node.

pub fn root(self) -> Option<Root<'d>>[src]

pub fn element(self) -> Option<Element<'d>>[src]

pub fn attribute(self) -> Option<Attribute<'d>>[src]

pub fn text(self) -> Option<Text<'d>>[src]

pub fn comment(self) -> Option<Comment<'d>>[src]

pub fn processing_instruction(self) -> Option<ProcessingInstruction<'d>>[src]

pub fn namespace(self) -> Option<Namespace<'d>>[src]

Trait Implementations

impl<'d> Clone for Node<'d>[src]

impl<'d> Copy for Node<'d>[src]

impl<'d> Debug for Node<'d>[src]

impl<'d> Eq for Node<'d>[src]

impl<'d> Extend<Node<'d>> for Nodeset<'d>[src]

impl<'d> From<Attribute<'d>> for Node<'d>[src]

impl<'d> From<Comment<'d>> for Node<'d>[src]

impl<'d> From<Element<'d>> for Node<'d>[src]

impl<'d> From<ProcessingInstruction<'d>> for Node<'d>[src]

impl<'d> From<Root<'d>> for Node<'d>[src]

impl<'d> From<Text<'d>> for Node<'d>[src]

impl<'d> FromIterator<Node<'d>> for Nodeset<'d>[src]

impl<'d> FromIterator<Node<'d>> for OrderedNodes<'d>[src]

impl<'d> Hash for Node<'d>[src]

impl<'d> PartialEq<Node<'d>> for Node<'d>[src]

impl<'d> StructuralEq for Node<'d>[src]

impl<'d> StructuralPartialEq for Node<'d>[src]

Auto Trait Implementations

impl<'d> !RefUnwindSafe for Node<'d>[src]

impl<'d> !Send for Node<'d>[src]

impl<'d> !Sync for Node<'d>[src]

impl<'d> Unpin for Node<'d>[src]

impl<'d> !UnwindSafe for Node<'d>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.