pub struct SelectorPath {
pub paths: Vec<PathExpr>,
}Expand description
Selector path — picks elements relative to the constraint-declaring element. Per XSD §3.11.6 the syntax is:
Selector = Path ('|' Path)*
Path = ('.//')? Step ('/' Step)*
Step = '.' | NameTest | ('child::' NameTest)
NameTest = QName | '*' | NCName ':*'We model the union (|) as a Vec<PathExpr> and each path as a
list of PathSteps with an optional descendant-or-self prefix.
Fields§
§paths: Vec<PathExpr>Trait Implementations§
Source§impl Clone for SelectorPath
impl Clone for SelectorPath
Source§fn clone(&self) -> SelectorPath
fn clone(&self) -> SelectorPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SelectorPath
impl RefUnwindSafe for SelectorPath
impl Send for SelectorPath
impl Sync for SelectorPath
impl Unpin for SelectorPath
impl UnsafeUnpin for SelectorPath
impl UnwindSafe for SelectorPath
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