reinhardt-admin-cli 0.2.0-rc.1

Command-line tool for Reinhardt project management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Rewriter trait composed across rules.

/// 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`.
pub trait FileRewriter {
	/// Returns a (possibly) transformed copy of the input file AST.
	fn rewrite(&self, file: syn::File) -> syn::File;

	/// Short name for `--skip` filtering and reporting.
	fn name(&self) -> &'static str;
}