Struct cranelift_codegen::machinst::buffer::MachLabel [−][src]
pub struct MachLabel(_);
Expand description
A label refers to some offset in a MachBuffer. It may not be resolved at
the point at which it is used by emitted code; the buffer records “fixups”
for references to the label, and will come back and patch the code
appropriately when the label’s location is eventually known.
Implementations
impl MachLabel[src]
impl MachLabel[src]pub fn from_block(bindex: BlockIndex) -> MachLabel[src]
pub fn from_block(bindex: BlockIndex) -> MachLabel[src]Get a label for a block. (The first N MachLabels are always reseved for the N blocks in the vcode.)
Trait Implementations
impl Ord for MachLabel[src]
impl Ord for MachLabel[src]impl PartialOrd<MachLabel> for MachLabel[src]
impl PartialOrd<MachLabel> for MachLabel[src]fn partial_cmp(&self, other: &MachLabel) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &MachLabel) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl ReservedValue for MachLabel[src]
impl ReservedValue for MachLabel[src]fn reserved_value() -> MachLabel[src]
fn reserved_value() -> MachLabel[src]Create an instance of the reserved value.
fn is_reserved_value(&self) -> bool[src]
fn is_reserved_value(&self) -> bool[src]Checks whether value is the reserved one.
impl Copy for MachLabel[src]
impl Eq for MachLabel[src]
impl StructuralEq for MachLabel[src]
impl StructuralPartialEq for MachLabel[src]
Auto Trait Implementations
impl RefUnwindSafe for MachLabel
impl Send for MachLabel
impl Sync for MachLabel
impl Unpin for MachLabel
impl UnwindSafe for MachLabel
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> SparseMapValue<T> for T where
T: EntityRef, [src]
impl<T> SparseMapValue<T> for T where
T: EntityRef, [src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more