Skip to main content

Mojo struct

Major

@register_passable(trivial) struct Major

Fields

  • val (Int):

Implemented traits

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

comptime members

__copy_ctor_is_trivial

comptime __copy_ctor_is_trivial = True

__del__is_trivial

comptime __del__is_trivial = True

__move_ctor_is_trivial

comptime __move_ctor_is_trivial = True

K

comptime K = Major(0)

MN

comptime MN = Major(1)

Methods

__eq__

__eq__(self, rhs: Self) -> Bool

Returns:

Bool

Was this page helpful?