struct ProgramCounter {
range: Range<*const u8>,
pc: *const u8,
}
Expand description
An program counter. This is implemented as a bound checked range pointer.
Fields§
§range: Range<*const u8>
Valid range for this instruction pointer.
pc: *const u8
Points to the next instruction.
Implementations§
Trait Implementations§
Source§impl Clone for ProgramCounter
impl Clone for ProgramCounter
Source§fn clone(&self) -> ProgramCounter
fn clone(&self) -> ProgramCounter
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 moreAuto Trait Implementations§
impl Freeze for ProgramCounter
impl RefUnwindSafe for ProgramCounter
impl !Send for ProgramCounter
impl !Sync for ProgramCounter
impl Unpin for ProgramCounter
impl UnwindSafe for ProgramCounter
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