MojoVersion
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.