Mojo struct
Axis
@register_passable(trivial)
struct Axis
Fields
- axis (
Int
):
Implemented traits
AnyType
,
Copyable
,
ExplicitlyCopyable
,
Indexer
,
Intable
,
Movable
,
UnknownDestructibility
Methods
__init__
@implicit
__init__(axis: Int) -> Self
__init__(out self, axis: Int, rank: Int)
__int__
__int__(self) -> Int
__index__
__index__(self) -> index
Convert to index.
Returns:
The corresponding __mlir_type.index value.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!