Mojo struct
StaticInt
@register_passable(trivial)
struct StaticInt[value: Int]
Aliases
static_value = OptionalReg[Int]({:@stdlib::@builtin::@int::@Int value, 0})
:
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Intable
,
Movable
,
OptionallyStaticInt
,
UnknownDestructibility
Methods
__init__
__init__() -> Self
__int__
__int__(self) -> Int
as_uint32
as_uint32(self) -> SIMD[uint32, 1]
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!