Enum haybale::BBInstrIndex
source · pub enum BBInstrIndex {
Instr(usize),
Terminator,
}
Expand description
Denotes either a particular instruction in a basic block, or its terminator.
Variants§
Instr(usize)
Index of the instruction within the basic block. 0-indexed, so 0 means the first instruction of the basic block.
Terminator
Indicates the basic block terminator (not one of its instructions)
Trait Implementations§
source§impl Clone for BBInstrIndex
impl Clone for BBInstrIndex
source§fn clone(&self) -> BBInstrIndex
fn clone(&self) -> BBInstrIndex
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 moresource§impl Debug for BBInstrIndex
impl Debug for BBInstrIndex
source§impl Display for BBInstrIndex
impl Display for BBInstrIndex
source§impl Hash for BBInstrIndex
impl Hash for BBInstrIndex
source§impl Ord for BBInstrIndex
impl Ord for BBInstrIndex
source§fn cmp(&self, other: &BBInstrIndex) -> Ordering
fn cmp(&self, other: &BBInstrIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BBInstrIndex
impl PartialEq for BBInstrIndex
source§fn eq(&self, other: &BBInstrIndex) -> bool
fn eq(&self, other: &BBInstrIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BBInstrIndex
impl PartialOrd for BBInstrIndex
source§fn partial_cmp(&self, other: &BBInstrIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &BBInstrIndex) -> Option<Ordering>
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 BBInstrIndex
impl Eq for BBInstrIndex
impl StructuralEq for BBInstrIndex
impl StructuralPartialEq for BBInstrIndex
Auto Trait Implementations§
impl RefUnwindSafe for BBInstrIndex
impl Send for BBInstrIndex
impl Sync for BBInstrIndex
impl Unpin for BBInstrIndex
impl UnwindSafe for BBInstrIndex
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