Enum cranelift_codegen::cursor::CursorPosition
source · Expand description
The possible positions of a cursor.
Variants§
Nowhere
Cursor is not pointing anywhere. No instructions can be inserted.
At(Inst)
Cursor is pointing at an existing instruction. New instructions will be inserted before the current instruction.
Before(Ebb)
Cursor is before the beginning of an EBB. No instructions can be inserted. Calling
next_inst()
will move to the first instruction in the EBB.
After(Ebb)
Cursor is pointing after the end of an EBB. New instructions will be appended to the EBB.
Trait Implementations§
source§impl Clone for CursorPosition
impl Clone for CursorPosition
source§fn clone(&self) -> CursorPosition
fn clone(&self) -> CursorPosition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more