Struct ast_grep_core::ops::All
source · Implementations
Trait Implementations
sourceimpl<L: Language, P: Matcher<L>> Matcher<L> for All<L, P>
impl<L: Language, P: Matcher<L>> Matcher<L> for All<L, P>
sourcefn match_node_with_env<'tree>(
&self,
node: Node<'tree, L>,
env: &mut MetaVarEnv<'tree, L>
) -> Option<Node<'tree, L>>
fn match_node_with_env<'tree>(
&self,
node: Node<'tree, L>,
env: &mut MetaVarEnv<'tree, L>
) -> Option<Node<'tree, L>>
Returns the node why the input is matched or None if not matched.
The return value is usually input node itself, but it can be different node.
For example
Has matcher can return the child or descendant node. Read morefn match_node<'tree>(&self, node: Node<'tree, L>) -> Option<NodeMatch<'tree, L>>
fn get_meta_var_matchers(&self) -> MetaVarMatchers<L>
fn get_meta_var_env<'tree>(&self) -> MetaVarEnv<'tree, L>
fn find_node_with_env<'tree>(
&self,
node: Node<'tree, L>,
env: &mut MetaVarEnv<'tree, L>
) -> Option<Node<'tree, L>>
fn find_node<'tree>(&self, node: Node<'tree, L>) -> Option<NodeMatch<'tree, L>>
fn find_all_nodes(self, node: Node<'_, L>) -> FindAllNodes<'_, L, Self>where
Self: Sized,
impl<L: Language, M: Matcher<L>> PositiveMatcher<L> for All<L, M>
Auto Trait Implementations
impl<L, P> RefUnwindSafe for All<L, P>where
L: RefUnwindSafe,
P: RefUnwindSafe,
impl<L, P> Send for All<L, P>where
L: Send,
P: Send,
impl<L, P> Sync for All<L, P>where
L: Sync,
P: Sync,
impl<L, P> Unpin for All<L, P>where
L: Unpin,
P: Unpin,
impl<L, P> UnwindSafe for All<L, P>where
L: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more