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<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 more