pub trait Rebuilder {
// Required method
fn map_var_id(&mut self, var: VariableId) -> VariableId;
// Provided methods
fn map_var_usage(&mut self, var_usage: VarUsage) -> VarUsage { ... }
fn map_location(&mut self, location: LocationId) -> LocationId { ... }
fn map_block_id(&mut self, block: BlockId) -> BlockId { ... }
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.