pub struct ProgPoint { /* private fields */ }
Expand description
A program point: a single point before or after a given instruction.
Implementations§
source§impl ProgPoint
impl ProgPoint
sourcepub fn new(inst: Inst, pos: InstPosition) -> Self
pub fn new(inst: Inst, pos: InstPosition) -> Self
Create a new ProgPoint before or after the given instruction.
sourcepub fn pos(self) -> InstPosition
pub fn pos(self) -> InstPosition
Get the “position” (Before or After) relative to the instruction.
sourcepub fn next(self) -> ProgPoint
pub fn next(self) -> ProgPoint
Get the “next” program point: for After, this is the Before of the next instruction, while for Before, this is After of the same instruction.
sourcepub fn from_index(index: u32) -> Self
pub fn from_index(index: u32) -> Self
Construct from the raw 32-bit encoding.
Trait Implementations§
source§impl Ord for ProgPoint
impl Ord for ProgPoint
source§impl PartialOrd for ProgPoint
impl PartialOrd for ProgPoint
impl Copy for ProgPoint
impl Eq for ProgPoint
impl StructuralPartialEq for ProgPoint
Auto Trait Implementations§
impl Freeze for ProgPoint
impl RefUnwindSafe for ProgPoint
impl Send for ProgPoint
impl Sync for ProgPoint
impl Unpin for ProgPoint
impl UnwindSafe for ProgPoint
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)