RebuilderEx

Trait RebuilderEx 

Source
pub trait RebuilderEx<'db>: Rebuilder<'db> {
    // Provided methods
    fn rebuild_statement(
        &mut self,
        statement: &Statement<'db>,
    ) -> Statement<'db> { ... }
    fn rebuild_remapping(
        &mut self,
        remapping: &VarRemapping<'db>,
    ) -> VarRemapping<'db> { ... }
    fn rebuild_end(&mut self, end: &BlockEnd<'db>) -> BlockEnd<'db> { ... }
    fn rebuild_block(&mut self, block: &Block<'db>) -> Block<'db> { ... }
}

Provided Methods§

Source

fn rebuild_statement(&mut self, statement: &Statement<'db>) -> Statement<'db>

Rebuilds the statement with renamed var and block ids.

Source

fn rebuild_remapping( &mut self, remapping: &VarRemapping<'db>, ) -> VarRemapping<'db>

Apply map_var_id to all the variables in the remapping.

Source

fn rebuild_end(&mut self, end: &BlockEnd<'db>) -> BlockEnd<'db>

Rebuilds the block end with renamed var and block ids.

Source

fn rebuild_block(&mut self, block: &Block<'db>) -> Block<'db>

Rebuilds the block with renamed var and block ids.

Implementors§

Source§

impl<'db, T: Rebuilder<'db>> RebuilderEx<'db> for T