> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Struct IndexExpression

Module: `std::meta::expr`

```rust
pub comptime struct IndexExpression
{ /* private fields */ }
```

An index expression decomposed by [`Expr::as_index`](/aztec-nr-api/v6.0.0/std/primitive.Expr.md#as_index).

## Implementations

```rust
impl IndexExpression
```

```rust
pub comptime fn collection(self) -> Expr
```

The collection being indexed.

```rust
pub comptime fn index(self) -> Expr
```

The index expression.
