Skip to main content

Mojo module

type_aliases

Defines some type aliases.

These are Mojo built-ins, so you don't need to import them.

Aliases

  • AnyTrivialRegType = AnyTrivialRegType: Represents any register passable Mojo data type.
  • ImmutableLifetime = ImmutableLifetime: Immutable lifetime reference type.
  • ImmutableStaticLifetime = MutableStaticLifetime: The immutable lifetime that lasts for the entire duration of program execution.
  • LifetimeSet = lifetime.set: A set of lifetime parameters.
  • MutableLifetime = MutableLifetime: Mutable lifetime reference type.
  • MutableStaticLifetime = MutableStaticLifetime: The mutable lifetime that lasts for the entire duration of program execution.

Structs

  • AnyLifetime: This represents a lifetime reference of potentially parametric type. TODO: This should be replaced with a parametric type alias.

Was this page helpful?