Skip to main content
Log in

Mojo trait

OptionallyStaticInt

Implemented traits

AnyType, Copyable, Intable, Movable, UnknownDestructibility

Methods

__copyinit__

__copyinit__(out self: _Self, existing: _Self, /)

Create a new instance of the value by copying an existing one.

Args:

  • existing (_Self): The value to copy.

__moveinit__

__moveinit__(out self: _Self, owned existing: _Self, /)

Create a new instance of the value by moving the value of another.

Args:

  • existing (_Self): The value to move.

as_uint32

as_uint32(self: _Self) -> SIMD[uint32, 1]

__int__

__int__(self: _Self) -> Int

Get the integral representation of the value.

Returns:

The integral representation of the value.