pub struct CodeCursor(/* private fields */);Expand description
An instruction position minted only by validated LocatedCode.
Raw offsets cannot create cursors:
ⓘ
use sim_lib_machine::CodeCursor;
let cursor = CodeCursor(7);Trait Implementations§
Source§impl Clone for CodeCursor
impl Clone for CodeCursor
Source§fn clone(&self) -> CodeCursor
fn clone(&self) -> CodeCursor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CodeCursor
Source§impl Debug for CodeCursor
impl Debug for CodeCursor
impl Eq for CodeCursor
Source§impl Hash for CodeCursor
impl Hash for CodeCursor
Source§impl Ord for CodeCursor
impl Ord for CodeCursor
Source§fn cmp(&self, other: &CodeCursor) -> Ordering
fn cmp(&self, other: &CodeCursor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CodeCursor
impl PartialEq for CodeCursor
Source§impl PartialOrd for CodeCursor
impl PartialOrd for CodeCursor
impl StructuralPartialEq for CodeCursor
Auto Trait Implementations§
impl Freeze for CodeCursor
impl RefUnwindSafe for CodeCursor
impl Send for CodeCursor
impl Sync for CodeCursor
impl Unpin for CodeCursor
impl UnsafeUnpin for CodeCursor
impl UnwindSafe for CodeCursor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more