pub type AstNodePath<'ast> = AstNodePath<AstParentNodeRef<'ast>>;
Aliased Type§
struct AstNodePath<'ast> { /* private fields */ }
Implementations
§impl<N> AstNodePath<N>where
N: NodeRef,
impl<N> AstNodePath<N>where
N: NodeRef,
pub fn new( kinds: AstKindPath<<N as NodeRef>::ParentKind>, path: Vec<N>, ) -> AstNodePath<N>
pub fn kinds(&self) -> &AstKindPath<<N as NodeRef>::ParentKind>
pub fn with_guard(&mut self, node: N) -> AstNodePathGuard<'_, N>
pub fn with_index_guard(&mut self, index: usize) -> AstNodePathIndexGuard<'_, N>
pub fn with<F, Ret>(&mut self, node: N, op: F) -> Retwhere
F: for<'aa> FnOnce(&'aa mut AstNodePath<N>) -> Ret,
👎Deprecated: Use with_guard instead
pub fn with_index<F, Ret>(&mut self, index: usize, op: F) -> Retwhere
F: for<'aa> FnOnce(&'aa mut AstNodePath<N>) -> Ret,
👎Deprecated: Use with_index_guard instead