Enum ast_grep_core::meta_var::MetaVarMatcher
source · pub enum MetaVarMatcher<D: Doc> {
Regex(RegexMatcher<D::Lang>),
Pattern(Pattern<D>),
Kind(KindMatcher<D::Lang>),
}
Variants§
Regex(RegexMatcher<D::Lang>)
A regex to filter matched metavar based on its textual content.
Pattern(Pattern<D>)
A pattern to filter matched metavar based on its AST tree shape.
Kind(KindMatcher<D::Lang>)
A kind_id to filter matched metavar based on its ts-node kind
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D> RefUnwindSafe for MetaVarMatcher<D>where D: RefUnwindSafe, <D as Doc>::Lang: RefUnwindSafe,
impl<D> Send for MetaVarMatcher<D>where D: Send, <D as Doc>::Lang: Send,
impl<D> Sync for MetaVarMatcher<D>where D: Sync, <D as Doc>::Lang: Sync,
impl<D> Unpin for MetaVarMatcher<D>where D: Unpin, <D as Doc>::Lang: Unpin,
impl<D> UnwindSafe for MetaVarMatcher<D>where D: UnwindSafe, <D as Doc>::Lang: UnwindSafe,
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