Skip to main content
Version: dev

TypedExpr

std::meta::typed_expr contains methods on the built-in TypedExpr type for resolved and type-checked expressions.

Methods

as_function_definition

as_function_definition
fn as_function_definition(self) -> Option<FunctionDefinition> {}

Source code: noir_stdlib/src/meta/typed_expr.nr#L5-L7

If this expression refers to a function definitions, returns it. Otherwise returns Option::none().