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

# Trait IndexedTreeLeafValue

Module: `noir_aztec::protocol::merkle_tree::leaf_preimage`

```rust
pub trait IndexedTreeLeafValue: Empty
where
    _: Empty{
    // Required methods
    pub fn get_key(self) -> Field
    where
        Self: Empty;
}
```

## Required methods

```rust
pub fn get_key(self) -> Field
where
    Self: Empty
```

## Implementors

```rust
impl IndexedTreeLeafValue for Field
```

```rust
impl IndexedTreeLeafValue for PublicDataTreeLeaf
```
