pub enum Axis {
Child,
Attribute,
SelfAxis,
Descendant,
DescendantOrSelf,
FollowingSibling,
Parent,
Ancestor,
AncestorOrSelf,
PrecedingSibling,
Preceding,
}Expand description
The supported axes. descendant, following and namespace are refused by the parser.
Variants§
Child
child:: (also the default axis)
Attribute
attribute:: or @
SelfAxis
self::
Descendant
descendant::
DescendantOrSelf
descendant-or-self:: (from //)
FollowingSibling
following-sibling::
Parent
parent:: or ..
Ancestor
ancestor::
AncestorOrSelf
ancestor-or-self::
PrecedingSibling
preceding-sibling::
Preceding
preceding::
Implementations§
Trait Implementations§
impl Copy for Axis
impl Eq for Axis
impl StructuralPartialEq for Axis
Auto Trait Implementations§
impl Forget for Axis
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