pub enum Axis {
Show 13 variants
Child,
Descendant,
Attribute,
SelfAxis,
DescendantOrSelf,
FollowingSibling,
Following,
Parent,
Ancestor,
PrecedingSibling,
Preceding,
AncestorOrSelf,
Namespace,
}Expand description
XPath axis specifier.
Variants§
Child
child:: (default for element names)
Descendant
descendant::
Attribute
attribute:: (abbreviated @)
SelfAxis
self::
DescendantOrSelf
descendant-or-self::
FollowingSibling
following-sibling::
Following
following::
Parent
parent:: (abbreviated ..)
Ancestor
ancestor::
PrecedingSibling
preceding-sibling::
Preceding
preceding::
AncestorOrSelf
ancestor-or-self::
Namespace
namespace::
Implementations§
Source§impl Axis
impl Axis
Sourcepub fn is_reverse(&self) -> bool
pub fn is_reverse(&self) -> bool
Check if this is a reverse axis (traverses in reverse document order).
Sourcepub fn is_forward(&self) -> bool
pub fn is_forward(&self) -> bool
Check if this is a forward axis.
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Freeze for Axis
impl RefUnwindSafe for Axis
impl Send for Axis
impl Sync for Axis
impl Unpin for Axis
impl UnsafeUnpin for Axis
impl UnwindSafe for Axis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more