Trait midenc_hir::InstBuilderBase

source ·
pub trait InstBuilderBase<'f>: Sized {
    // Required methods
    fn data_flow_graph(&self) -> &DataFlowGraph;
    fn data_flow_graph_mut(&mut self) -> &mut DataFlowGraph;
    fn insertion_point(&self) -> InsertionPoint;
    fn build(
        self,
        data: Instruction,
        ctrl_ty: Type,
        span: SourceSpan,
    ) -> (Inst, &'f mut DataFlowGraph);

    // Provided method
    fn ins<'a, 'b: 'a>(&'b mut self) -> DefaultInstBuilder<'a> { ... }
}

Required Methods§

source

fn data_flow_graph(&self) -> &DataFlowGraph

Get a reference to the underlying DataFlowGraph for this builder

source

fn data_flow_graph_mut(&mut self) -> &mut DataFlowGraph

Get a mutable reference to the underlying DataFlowGraph for this builder

source

fn insertion_point(&self) -> InsertionPoint

Return the insertion point of this builder

source

fn build( self, data: Instruction, ctrl_ty: Type, span: SourceSpan, ) -> (Inst, &'f mut DataFlowGraph)

Build the given instruction, returing it’s handle and the inner DataFlowGraph

Provided Methods§

source

fn ins<'a, 'b: 'a>(&'b mut self) -> DefaultInstBuilder<'a>

Get a default instruction builder using the dataflow graph and insertion point of the current builder

Object Safety§

This trait is not object safe.

Implementors§