Struct cranelift_codegen::machinst::buffer::MachLabel[][src]

pub struct MachLabel(_);

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]

pub fn from_u32(x: u32) -> Self[src]

Create a new instance from a u32.

pub fn as_u32(self) -> u32[src]

Return the underlying index value as a u32.

impl 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.)

pub fn get(self) -> u32[src]

Get the numeric label index.

pub fn to_string(&self) -> String[src]

Creates a string representing this label, for convenience.

Trait Implementations

impl Clone for MachLabel[src]

impl Copy for MachLabel[src]

impl Debug for MachLabel[src]

impl Default for MachLabel[src]

impl EntityRef for MachLabel[src]

impl Eq for MachLabel[src]

impl Hash for MachLabel[src]

impl Ord for MachLabel[src]

impl PartialEq<MachLabel> for MachLabel[src]

impl PartialOrd<MachLabel> for MachLabel[src]

impl ReservedValue 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SparseMapValue<T> for T where
    T: EntityRef
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.