Enum BasicBlock

enum BasicBlock

Type representing basic blocks.

All terminators will have this type as a return type. It helps achieve some type safety.

Variants

Normal

A non-cleanup basic block.

Cleanup

A basic block that lies on an unwind path.

Implementations

impl Freeze for BasicBlock

impl RefUnwindSafe for BasicBlock

impl Send for BasicBlock

impl Sync for BasicBlock

impl Unpin for BasicBlock

impl UnwindSafe for BasicBlock

impl<T> Any for BasicBlock

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for BasicBlock

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for BasicBlock

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for BasicBlock

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for BasicBlock

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for BasicBlock

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for BasicBlock

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>