Skip to main content

Mojo struct

StaticInt

struct StaticInt[value: Int]

Implemented traits

AnyType, Copyable, Defaultable, ImplicitlyCopyable, ImplicitlyDestructible, Intable, Movable, OptionallyStaticInt, RegisterPassable, TrivialRegisterPassable

comptime members

static_value

comptime static_value = Optional(value)

Methods

__init__

__init__() -> Self

__int__

__int__(self) -> Int

Returns:

Int

as_uint32

as_uint32(self) -> UInt32

Returns:

UInt32

Was this page helpful?