pub struct ProgPoint { /* private fields */ }
Expand description
A program point: a single point before or after a given instruction.
Implementations
sourceimpl 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
sourceimpl Ord for ProgPoint
impl Ord for ProgPoint
sourceimpl PartialOrd<ProgPoint> for ProgPoint
impl PartialOrd<ProgPoint> for ProgPoint
sourcefn partial_cmp(&self, other: &ProgPoint) -> Option<Ordering>
fn partial_cmp(&self, other: &ProgPoint) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more