pub struct PathStepNode {
pub axis: Axis,
pub test: NodeTest,
pub predicates: Vec<AstNodeId>,
pub span: SourceSpan,
pub resolved_test: Option<NameTest>,
}Expand description
Single step in a path expression.
Fields§
§axis: AxisAxis specifier.
test: NodeTestNode test (AST form with raw strings).
predicates: Vec<AstNodeId>Predicates (expression IDs).
span: SourceSpanSource location.
resolved_test: Option<NameTest>Resolved name test (populated during binding). Uses interned NameIds and resolved namespace URIs.
Implementations§
Source§impl PathStepNode
impl PathStepNode
pub fn new(axis: Axis, test: NodeTest, span: SourceSpan) -> Self
pub fn with_predicates( axis: Axis, test: NodeTest, predicates: Vec<AstNodeId>, span: SourceSpan, ) -> Self
Sourcepub fn abbrev_parent(span: SourceSpan) -> Self
pub fn abbrev_parent(span: SourceSpan) -> Self
Abbreviated parent step (..).
Trait Implementations§
Source§impl Clone for PathStepNode
impl Clone for PathStepNode
Source§fn clone(&self) -> PathStepNode
fn clone(&self) -> PathStepNode
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 PathStepNode
impl RefUnwindSafe for PathStepNode
impl Send for PathStepNode
impl Sync for PathStepNode
impl Unpin for PathStepNode
impl UnsafeUnpin for PathStepNode
impl UnwindSafe for PathStepNode
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