Enum ast_grep_core::meta_var::MetaVarMatcher
source · pub enum MetaVarMatcher<L: Language> {
Regex(Regex),
Pattern(Pattern<L>),
Kind(KindMatcher<L>),
}Variants
Regex(Regex)
A regex to filter matched metavar based on its textual content.
Pattern(Pattern<L>)
A pattern to filter matched metavar based on its AST tree shape.
Kind(KindMatcher<L>)
A kind_id to filter matched metavar based on its ts-node kind
Implementations
Trait Implementations
sourceimpl<L: Clone + Language> Clone for MetaVarMatcher<L>
impl<L: Clone + Language> Clone for MetaVarMatcher<L>
sourcefn clone(&self) -> MetaVarMatcher<L>
fn clone(&self) -> MetaVarMatcher<L>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl<L> RefUnwindSafe for MetaVarMatcher<L>where
L: RefUnwindSafe,
impl<L> Send for MetaVarMatcher<L>where
L: Send,
impl<L> Sync for MetaVarMatcher<L>where
L: Sync,
impl<L> Unpin for MetaVarMatcher<L>where
L: Unpin,
impl<L> UnwindSafe for MetaVarMatcher<L>where
L: 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