Skip to main content
Version: Nightly

Indexer

The Indexer trait is used for types that can index into a collection or pointer. The type returned is the underlying __mlir_type.index, enabling types like SIMD to not have to be converted to an Int first.

Implemented traits

AnyType, ImplicitlyDestructible

Required methods

__mlir_index__

__mlir_index__(self: _Self) -> __mlir_type.index

Convert to index.

Returns:

__mlir_type.index: The corresponding __mlir_type.index value.