[][src]Struct cranelift_codegen::ir::entities::Block

pub struct Block(_);

An opaque reference to a basic block in a Function.

You can get a Block using FunctionBuilder::create_block

While the order is stable, it is arbitrary and does not necessarily resemble the layout order.

Methods

impl Block

pub fn from_u32(x: u32) -> Self

Return the underlying index value as a u32.

pub fn as_u32(self) -> u32

Return the underlying index value as a u32.

impl Block[src]

pub fn with_number(n: u32) -> Option<Self>[src]

Create a new block reference from its number. This corresponds to the blockNN representation.

This method is for use by the parser.

Trait Implementations

impl Clone for Block[src]

impl Copy for Block[src]

impl Debug for Block

impl Display for Block

impl EntityRef for Block

impl Eq for Block[src]

impl From<Block> for AnyEntity[src]

impl From<Block> for ProgramPoint[src]

impl From<Block> for ExpandedProgramPoint[src]

impl Hash for Block[src]

impl Ord for Block[src]

impl PartialEq<Block> for Block[src]

impl PartialOrd<Block> for Block[src]

impl ReservedValue for Block

impl StructuralEq for Block[src]

impl StructuralPartialEq for Block[src]

Auto Trait Implementations

impl RefUnwindSafe for Block

impl Send for Block

impl Sync for Block

impl Unpin for Block

impl UnwindSafe for Block

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<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> ToString for T where
    T: Display + ?Sized
[src]

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.