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
sourceimpl AxisName
impl AxisName
pub fn principal_node_type(&self) -> PrincipalNodeType
Trait Implementations
impl Copy for AxisName
impl StructuralPartialEq for AxisName
Auto Trait Implementations
impl RefUnwindSafe for AxisName
impl Send for AxisName
impl Sync for AxisName
impl Unpin for AxisName
impl UnwindSafe for AxisName
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more