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

# Struct ArrayType

Module: `std::meta::typ`

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

An array type decomposed by [`Type::as_array`](/aztec-nr-api/v6.0.0/std/primitive.Type.md#as_array) into its element and length components.

## Implementations

```rust
impl ArrayType
```

```rust
pub comptime fn element_type(self) -> Type
```

The type of each element the array holds.

```rust
pub comptime fn length_type(self) -> Type
```

The type describing the array's length (a numeric-constant type).
