pub enum PathComponent {
Element(String),
Wildcard,
DescendantOrSelf,
AttributeFilter {
element: String,
attribute: String,
value: Option<String>,
},
IndexFilter {
element: String,
index: usize,
},
}
Expand description
Component of an XPath expression
Variants§
Element(String)
Element name (e.g., “Release”)
Wildcard
Wildcard match any element (*)
DescendantOrSelf
Descendant-or-self axis (//)
AttributeFilter
Attribute selector ([@attr=“value”])
IndexFilter
Index selector ([1], [2], etc.)
Trait Implementations§
Source§impl Clone for PathComponent
impl Clone for PathComponent
Source§fn clone(&self) -> PathComponent
fn clone(&self) -> PathComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PathComponent
impl Debug for PathComponent
Source§impl PartialEq for PathComponent
impl PartialEq for PathComponent
impl StructuralPartialEq for PathComponent
Auto Trait Implementations§
impl Freeze for PathComponent
impl RefUnwindSafe for PathComponent
impl Send for PathComponent
impl Sync for PathComponent
impl Unpin for PathComponent
impl UnwindSafe for PathComponent
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