pub type AstKindPath = AstKindPath<AstParentKind>;
Aliased Type§
struct AstKindPath { /* private fields */ }
Implementations
§impl<K> AstKindPath<K>where
K: ParentKind,
impl<K> AstKindPath<K>where
K: ParentKind,
pub fn new(path: Vec<K>) -> AstKindPath<K>
pub fn with_guard(&mut self, kind: K) -> AstKindPathGuard<'_, K>
pub fn with_index_guard(&mut self, index: usize) -> AstKindPathIndexGuard<'_, K>
pub fn with<Ret>( &mut self, path: K, op: impl FnOnce(&mut AstKindPath<K>) -> Ret, ) -> Ret
👎Deprecated: Use with_guard instead
pub fn with_index<Ret>( &mut self, index: usize, op: impl FnOnce(&mut AstKindPath<K>) -> Ret, ) -> Ret
👎Deprecated: Use with_index_guard instead