Mojo struct
MojoVersion
@register_passable(trivial)
struct MojoVersion
Represents the Mojo version as major, minor, and patch numbers.
Fields
- major (
Int): The major version number. - minor (
Int): The minor version number. - patch (
Int): The patch version number.
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methods
__init__
__init__() -> Self
Initializes the version by reading it from the compiler at compile time.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!