pub struct PathPattern {
pub anchor: PatternAnchor,
pub first: PathStep,
pub rest: Vec<(PatternLink, PathStep)>,
}Expand description
A path pattern: step, /step, //step, then steps separated by / or //.
Fields§
§anchor: PatternAnchorWhat precedes the first step.
first: PathStepThe first step.
rest: Vec<(PatternLink, PathStep)>The following steps, each with the separator before it.
Implementations§
Source§impl PathPattern
impl PathPattern
Sourcepub const fn single(anchor: PatternAnchor, step: PatternStep) -> Self
pub const fn single(anchor: PatternAnchor, step: PatternStep) -> Self
A path of one axis step and nothing else.
Trait Implementations§
Source§impl Clone for PathPattern
impl Clone for PathPattern
Source§impl Debug for PathPattern
impl Debug for PathPattern
impl Eq for PathPattern
Source§impl PartialEq for PathPattern
impl PartialEq for PathPattern
impl StructuralPartialEq for PathPattern
Auto Trait Implementations§
impl Forget for PathPattern
impl Freeze for PathPattern
impl RefUnwindSafe for PathPattern
impl Send for PathPattern
impl Sync for PathPattern
impl Unpin for PathPattern
impl UnsafeUnpin for PathPattern
impl UnwindSafe for PathPattern
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