[−][src]Trait c2rust_refactor::rewrite::Rewrite
Required methods
fn rewrite(old: &Self, new: &Self, rcx: RewriteCtxtRef) -> bool
Given an old AST, a new AST, and text corresponding to the old AST, transform the text into
text corresponding to the new AST. rcx
tracks the old text (in the form of a SourceMap
)
and the rewrites. Returns true
if rewriting succeeded, false
otherwise.