For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
get_type_name
get_type_name[type: AnyType, *, qualified_builtins: Bool = False]() -> StaticString
Returns the struct name of the given type parameter.
Deprecated: use reflect[type]().name[qualified_builtins=...]() instead.
Deprecated: Use reflect[T]().name() (with optional name[qualified_builtins=True]()) instead.
Parameters:
- type (
AnyType): A mojo type. - qualified_builtins (
Bool): Whether to print fully qualified builtin type names (e.g.std.builtin.int.Int) or shorten them (e.g.Int).
Returns:
StaticString: Type name.