pub enum Axis {
Child,
Descendant,
DescendantOrSelf,
Parent,
Ancestor,
AncestorOrSelf,
SelfAxis,
Attribute,
FollowingSibling,
PrecedingSibling,
}Available on crate feature
xpath only.Expand description
Which direction and which nodes a step selects.
Variants§
Child
child:: — the default axis.
Descendant
descendant::
DescendantOrSelf
descendant-or-self:: — the // shorthand.
Parent
parent::
Ancestor
ancestor::
AncestorOrSelf
ancestor-or-self::
SelfAxis
self:: — the . shorthand.
Attribute
attribute:: — the @ shorthand.
FollowingSibling
following-sibling::
PrecedingSibling
preceding-sibling::
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