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(Block)
Cursor is before the beginning of a block. No instructions can be inserted. Calling
next_inst()
will move to the first instruction in the block.
After(Block)
Cursor is pointing after the end of a block. New instructions will be appended to the block.
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 moresource§impl Debug for CursorPosition
impl Debug for CursorPosition
source§impl PartialEq<CursorPosition> for CursorPosition
impl PartialEq<CursorPosition> for CursorPosition
source§fn eq(&self, other: &CursorPosition) -> bool
fn eq(&self, other: &CursorPosition) -> bool
impl Copy for CursorPosition
impl Eq for CursorPosition
impl StructuralEq for CursorPosition
impl StructuralPartialEq for CursorPosition
Auto Trait Implementations§
impl RefUnwindSafe for CursorPosition
impl Send for CursorPosition
impl Sync for CursorPosition
impl Unpin for CursorPosition
impl UnwindSafe for CursorPosition
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.