pub trait Rebuilder {
// Required methods
fn map_var_id(&mut self, var: VariableId) -> VariableId;
fn map_block_id(&mut self, block: BlockId) -> BlockId;
// Provided methods
fn map_var_usage(&mut self, var_usage: VarUsage) -> VarUsage { ... }
fn map_location(&mut self, location: LocationId) -> LocationId { ... }
fn transform_statement(&mut self, _statement: &mut Statement) { ... }
fn transform_remapping(&mut self, _remapping: &mut VarRemapping) { ... }
fn transform_end(&mut self, _end: &mut FlatBlockEnd) { ... }
fn transform_block(&mut self, _block: &mut FlatBlock) { ... }
}
Expand description
A rebuilder trait for rebuilding lowered representation.