Mojo function
get_function_name
get_function_name[func_type: AnyType, //, func: func_type]() -> StringSlice[StaticConstantOrigin]
Returns func's name as declared in the source code.
The returned name does not include any information about the function's parameters, arguments, or return type, just the name as declared in the source code.
Parameters:
- func_type (
AnyType): Type of func. - func (
func_type): A mojo function.
Returns:
StringSlice: The function's name as declared in the source code.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!