GenericExpandWith

Trait GenericExpandWith 

Source
pub trait GenericExpandWith<T> {
    // Required method
    fn expand_with<Tr: GenericTransformer<T>>(
        self,
        transformer: &mut Tr,
    ) -> Vec<Self>
       where Self: Sized;
}
Expand description

Extension trait for generic expandable transformations

Required Methods§

Source

fn expand_with<Tr: GenericTransformer<T>>( self, transformer: &mut Tr, ) -> Vec<Self>
where Self: Sized,

Apply a generic expandable transformer to this AST node, returning multiple nodes

Implementors§