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 PartialEq<ProgPoint> for ProgPoint
impl PartialEq<ProgPoint> for ProgPoint
source§impl PartialOrd<ProgPoint> for ProgPoint
impl PartialOrd<ProgPoint> for ProgPoint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ProgPoint
impl Eq for ProgPoint
impl StructuralEq for ProgPoint
impl StructuralPartialEq for ProgPoint
Auto Trait Implementations§
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