Skip to main content

Mojo struct

IO

struct IO

Fields​

  • ​value (SIMDSize):

Implemented traits​

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

comptime members​

FusedInput​

comptime FusedInput = IO(2)

FusedOutput​

comptime FusedOutput = IO(3)

Input​

comptime Input = IO(1)

Output​

comptime Output = IO(0)

Unknown​

comptime Unknown = IO(-1)

Methods​

__init__​

__init__(value: Int) -> Self

__eq__​

__eq__(self, other: Self) -> Bool

Returns:

Bool

__ne__​

__ne__(self, other: Self) -> Bool

Returns:

Bool

is_fused​

is_fused(self) -> Bool

True when this IO represents any fused variant (input, output, or compute-output).

Returns:

Bool