cairo_lang_sierra::program

Type Alias Function

source
pub type Function = GenFunction<StatementIdx>;

Aliased Type§

struct Function {
    pub id: FunctionId,
    pub signature: FunctionSignature,
    pub params: Vec<Param>,
    pub entry_point: StatementIdx,
}

Fields§

§id: FunctionId

The name of the function.

§signature: FunctionSignature

The parameter types and return types.

§params: Vec<Param>

The parameters of the function.

§entry_point: StatementIdx

The statement id where the function starts.

Trait Implementations§

source§

impl Display for Function

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more