pub struct Block { /* fields omitted */ }
Create a new empty basic block with an optional name (aka label).
Obtain a reference to this block.
Obtain an iterator over the instructions in this block.
Obtain an iterator over references to the instructions in this block.
Insert an instruction into this block as dictated by the requested
position. Begin
and End
are treated as synonyms to BlockBegin
and
BlockEnd
. Panics if the referred instruction is not part of this
block.
Detach an instruction from this block. Panics if the instruction is not
part of this block.
Get the unique ID of the value.
Get the type of the value.
Get the optional name of the value.
Whether this value is global or not. Global values are considered during linking, and are visible in a module's symbol table. Local values are not, and are only visible within the surrounding context (module or unit). Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static