Enum ast_grep_core::replacer::Fixer
source · pub enum Fixer<C: IndentSensitive> {
Textual(Vec<C::Underlying>),
WithMetaVar(Template<C>),
}
Variants§
Textual(Vec<C::Underlying>)
WithMetaVar(Template<C>)
Implementations§
Trait Implementations§
source§impl<C, D> Replacer<D> for Fixer<C>where
C: IndentSensitive,
D: Doc<Source = C>,
impl<C, D> Replacer<D> for Fixer<C>where C: IndentSensitive, D: Doc<Source = C>,
fn generate_replacement( &self, nm: &NodeMatch<'_, D> ) -> Vec<<D::Source as Content>::Underlying>
Auto Trait Implementations§
impl<C> RefUnwindSafe for Fixer<C>where <C as Content>::Underlying: RefUnwindSafe,
impl<C> Send for Fixer<C>where <C as Content>::Underlying: Send,
impl<C> Sync for Fixer<C>where <C as Content>::Underlying: Sync,
impl<C> Unpin for Fixer<C>where <C as Content>::Underlying: Unpin,
impl<C> UnwindSafe for Fixer<C>where <C as Content>::Underlying: 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