Enum xpather::tokens::AxisName [−][src]
Variants
‘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
‘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’ Contains the attributes of the context node; the axis will be empty unless the context node is an element
‘child’ Contains the children of the context node
‘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
‘descendant-or-self’ Contains the context node and the descendants of the context node
‘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
‘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’ Contains the namespace nodes of the context node; the axis will be empty unless the context node is an element
‘parent’ Contains the parent of the context node, if there is one
‘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
‘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
‘self’ Contains just the context node itself
Implementations
impl AxisName
[src]
pub fn principal_node_type(&self) -> PrincipalNodeType
[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]
fn eq(&self, other: &AxisName) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for AxisName
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,