pub enum AxisName {
Show 13 variants Ancestor, AncestorOrSelf, Attribute, Child, Descendant, DescendantOrSelf, Following, FollowingSibling, Namespace, Parent, Preceding, PrecedingSibling, SelfAxis,
}

Variants

Ancestor

‘ancestor’ Contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent’s parent and so on; thus, the ancestor axis will always include the root node, unless the context node is the root node

AncestorOrSelf

‘ancestor-or-self’ Contains the context node and the ancestors of the context node; thus, the ancestor axis will always include the root node

Attribute

‘attribute’ Contains the attributes of the context node; the axis will be empty unless the context node is an element

Child

‘child’ Contains the children of the context node

Descendant

‘descendant’ Contains the descendants of the context node; a descendant is a child or a child of a child and so on; thus the descendant axis never contains attribute or namespace nodes

DescendantOrSelf

‘descendant-or-self’ Contains the context node and the descendants of the context node

Following

‘following’ Contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes

FollowingSibling

‘following-or-self’ Contains all the following siblings of the context node; if the context node is an attribute node or namespace node, the following-sibling axis is empty

Namespace

‘namespace’ Contains the namespace nodes of the context node; the axis will be empty unless the context node is an element

Parent

‘parent’ Contains the parent of the context node, if there is one

Preceding

‘preceding’ Contains all nodes in the same document as the context node that are before the context node in document order, excluding any ancestors and excluding attribute nodes and namespace nodes

PrecedingSibling

‘preceding-sibling’ Contains all the preceding siblings of the context node; if the context node is an attribute node or namespace node, the preceding-sibling axis is empty

SelfAxis

‘self’ Contains just the context node itself

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.