pub trait Replacer<D: Doc> {
    // Required method
    fn generate_replacement(
        &self,
        nm: &NodeMatch<'_, D>
    ) -> Vec<<D::Source as Content>::Underlying>;
}
Expand description

Replace meta variable in the replacer string

Required Methods§

source

fn generate_replacement( &self, nm: &NodeMatch<'_, D> ) -> Vec<<D::Source as Content>::Underlying>

Implementations on Foreign Types§

source§

impl<D: Doc> Replacer<D> for strwhere D::Source: IndentSensitive,

source§

fn generate_replacement( &self, nm: &NodeMatch<'_, D> ) -> Vec<<D::Source as Content>::Underlying>

source§

impl<D, T> Replacer<D> for &Twhere D: Doc, T: Replacer<D> + ?Sized,

source§

fn generate_replacement( &self, nm: &NodeMatch<'_, D> ) -> Vec<<D::Source as Content>::Underlying>

Implementors§

source§

impl<'a, D: Doc> Replacer<D> for Node<'a, D>

source§

impl<C, D> Replacer<D> for Fixer<C>where C: IndentSensitive, D: Doc<Source = C>,

source§

impl<D: Doc> Replacer<D> for Pattern<D>