Skip to content

Instantly share code, notes, and snippets.

@jroesch
Last active August 29, 2015 14:14
Show Gist options
  • Save jroesch/34ccdf4d872da26dda38 to your computer and use it in GitHub Desktop.
Save jroesch/34ccdf4d872da26dda38 to your computer and use it in GitHub Desktop.
struct Renamer;
impl ast::Folder for Renamer {
fn fold_generics(&mut self, generics: Generics) -> Generics { /* your code here */ }
}
// use
Rename.fold_item(item)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment