Enum xpather::tokens::AxisName[][src]

pub enum AxisName {
    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

impl AxisName[src]

Trait Implementations

impl Clone for AxisName[src]

impl Copy for AxisName[src]

impl Debug for AxisName[src]

impl Into<ExprToken> for AxisName[src]

impl Into<ExprToken> for &AxisName[src]

impl PartialEq<AxisName> for AxisName[src]

impl StructuralPartialEq for AxisName[src]

Auto Trait Implementations

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> 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.