Enum ast_grep_core::meta_var::MetaVariable  
source · pub enum MetaVariable {
    Capture(MetaVariableID, bool),
    Dropped(bool),
    Multiple,
    MultiCapture(MetaVariableID),
}Variants§
Capture(MetaVariableID, bool)
$A for captured meta var
Dropped(bool)
$_ for non-captured meta var
Multiple
$$$ for non-captured multi var
MultiCapture(MetaVariableID)
$$$A for captured ellipsis
Trait Implementations§
source§impl Clone for MetaVariable
 
impl Clone for MetaVariable
source§fn clone(&self) -> MetaVariable
 
fn clone(&self) -> MetaVariable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for MetaVariable
 
impl Debug for MetaVariable
source§impl PartialEq for MetaVariable
 
impl PartialEq for MetaVariable
source§fn eq(&self, other: &MetaVariable) -> bool
 
fn eq(&self, other: &MetaVariable) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for MetaVariable
impl StructuralPartialEq for MetaVariable
Auto Trait Implementations§
impl Freeze for MetaVariable
impl RefUnwindSafe for MetaVariable
impl Send for MetaVariable
impl Sync for MetaVariable
impl Unpin for MetaVariable
impl UnwindSafe for MetaVariable
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