Enum cranelift_codegen::machinst::MachTerminator[][src]

pub enum MachTerminator<'a> {
    None,
    Ret,
    Uncond(MachLabel),
    Cond(MachLabelMachLabel),
    Indirect(&'a [MachLabel]),
}

Describes a block terminator (not call) in the vcode, when its branches have not yet been finalized (so a branch may have two targets).

Variants

None

Not a terminator.

Ret

A return instruction.

Uncond(MachLabel)

An unconditional branch to another block.

Cond(MachLabelMachLabel)

A conditional branch to one of two other blocks.

Indirect(&'a [MachLabel])

An indirect branch with known possible targets.

Trait Implementations

impl<'a> Clone for MachTerminator<'a>[src]

impl<'a> Debug for MachTerminator<'a>[src]

impl<'a> Eq for MachTerminator<'a>[src]

impl<'a> PartialEq<MachTerminator<'a>> for MachTerminator<'a>[src]

impl<'a> StructuralEq for MachTerminator<'a>[src]

impl<'a> StructuralPartialEq for MachTerminator<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MachTerminator<'a>

impl<'a> Send for MachTerminator<'a>

impl<'a> Sync for MachTerminator<'a>

impl<'a> Unpin for MachTerminator<'a>

impl<'a> UnwindSafe for MachTerminator<'a>

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