pub trait FileRewriter {
// Required methods
fn rewrite(&self, file: File) -> File;
fn name(&self) -> &'static str;
}Expand description
One mechanical migration step in the Manouche v1 → v2 codemod.
Each rule receives the parsed AST of a single .rs file and returns a
(possibly) transformed copy. Rules are composed sequentially by the
driver in migrate_v2::run.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".