[][src]Struct gf::pivot::BasicBlock

pub struct BasicBlock {
    pub metadata: Metadata,
    pub inputs: Option<VarGroup>,
    pub branch_var: Option<Var>,
    pub branch_outputs: [Option<VarGroup>; 2],
    pub branch_targets: [Option<BasicBlockId>; 2],
    pub statements: Vec<Statement>,
}

Basic block belonging to a fragment.

Fields

metadata: Metadata

Metadata associated with the basic block.

inputs: Option<VarGroup>

Input group.

branch_var: Option<Var>

Branch control variable.

branch_outputs: [Option<VarGroup>; 2]

Branch output groups: 0 for false branch, 1 for true branch.

branch_targets: [Option<BasicBlockId>; 2]

Branch target basic block IDs: 0 for false branch, 1 for true branch.

statements: Vec<Statement>

Sequence of basic block statements.

Methods

impl BasicBlock[src]

pub fn new() -> Self[src]

Construct an empty basic block.

Trait Implementations

impl Clone for BasicBlock[src]

impl Default for BasicBlock[src]

impl Debug for BasicBlock[src]

Auto Trait Implementations

impl Send for BasicBlock

impl Sync for BasicBlock

impl Unpin for BasicBlock

impl UnwindSafe for BasicBlock

impl RefUnwindSafe for BasicBlock

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]