Primitive type TypedExpr
Implementations
impl TypedExpr
pub comptime fn as_function_definition(self) -> Option<FunctionDefinition>
If this expression refers to a function definitions, returns it. Otherwise returns Option::none().
pub comptime fn get_type(self) -> Option<Type>
Returns the type of the expression, if the expression could be resolved without errors.
A compile-time type which represents a resolved and type-checked expression.
A
TypedExprcan be obtained usingExpr::resolve: