Struct cardinal_codegen::function::Function[][src]

pub struct Function {
    pub variables: HashMap<String, AbiType>,
    pub blocks: Vec<InstBlock>,
    pub name: String,
    pub signature: FunctionSignature,
}

Fields

variables: HashMap<String, AbiType>blocks: Vec<InstBlock>

A list of that blocks that may store instructions.

name: String

The name of the Function, used at compile time to generate correct code.

signature: FunctionSignature

The signature that the function uses.

Implementations

Creates a new function from the given name and signature.

Declares a variable at the start of the function.

Uses a block.

Creates a new empty block.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.