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
sourceimpl Clone for CursorPosition
impl Clone for CursorPosition
sourcefn clone(&self) -> CursorPosition
fn clone(&self) -> CursorPosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CursorPosition
impl Debug for CursorPosition
sourceimpl PartialEq<CursorPosition> for CursorPosition
impl PartialEq<CursorPosition> for CursorPosition
sourcefn eq(&self, other: &CursorPosition) -> bool
fn eq(&self, other: &CursorPosition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CursorPosition) -> bool
fn ne(&self, other: &CursorPosition) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.