pub fn Process(Root: &Path, Pattern: &str, Options: &Options) -> Result<Stats>Expand description
Discover Rust source files matching Pattern under Root, run the
elimination transform on each, and write back the result unless
Options.DryRun is set.
When Options.Reformat is false (the default) the preserve-layout path
is used: only the inlined binding sites are rewritten; comments, blank
lines, and indentation style are kept verbatim.
When Options.Reformat is true the whole file is reformatted with
prettyplease after inlining (the previous unconditional behaviour).
Returns aggregate Definition::Stats describing what was processed.