Enum sxd_xpath::nodeset::Node [] [src]

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

Methods

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

The document to which this node belongs.

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

Returns the expanded name of the node, if any.

Returns the parent of the node, if any.

Returns the children of the node, if any.

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

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

Returns the string value of this node.

Trait Implementations

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

Formats the value using the given formatter.

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.