Mojo struct
Dim
@register_passable(trivial)
struct Dim
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Movable
,
Stringable
,
UnknownDestructibility
,
Writable
Methods
__init__
@implicit
__init__(value: IndexList[3]) -> Self
@implicit
__init__[I: Indexer](x: I) -> Self
__init__[I0: Indexer, I1: Indexer](x: I0, y: I1) -> Self
__init__[I0: Indexer, I1: Indexer, I2: Indexer](x: I0, y: I1, z: I2) -> Self
@implicit
__init__[I: Indexer](dims: Tuple[I]) -> Self
@implicit
__init__[I0: Indexer, I1: Indexer](dims: Tuple[I0, I1]) -> Self
@implicit
__init__[I0: Indexer, I1: Indexer, I2: Indexer](dims: Tuple[I0, I1, I2]) -> Self
__getitem__
__getitem__(self, idx: Int) -> Int
__str__
__str__(self) -> String
__repr__
__repr__(self) -> String
write_to
write_to[W: Writer](self, mut writer: W)
z
z(self) -> Int
y
y(self) -> Int
x
x(self) -> Int
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!