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§
sourcefn data_flow_graph(&self) -> &DataFlowGraph
fn data_flow_graph(&self) -> &DataFlowGraph
Get a reference to the underlying DataFlowGraph for this builder
sourcefn data_flow_graph_mut(&mut self) -> &mut DataFlowGraph
fn data_flow_graph_mut(&mut self) -> &mut DataFlowGraph
Get a mutable reference to the underlying DataFlowGraph for this builder
sourcefn insertion_point(&self) -> InsertionPoint
fn insertion_point(&self) -> InsertionPoint
Return the insertion point of this builder
sourcefn build(
self,
data: Instruction,
ctrl_ty: Type,
span: SourceSpan,
) -> (Inst, &'f mut DataFlowGraph)
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§
sourcefn ins<'a, 'b: 'a>(&'b mut self) -> DefaultInstBuilder<'a>
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.