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

# Struct TypeGeneric

Module: `std::meta::type_def`

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

A generic parameter of a [`TypeDefinition`](/aztec-nr-api/v6.0.0/std/primitive.TypeDefinition.md), returned from [`TypeDefinition::generics`](/aztec-nr-api/v6.0.0/std/primitive.TypeDefinition.md#generics).

## Implementations

```rust
impl TypeGeneric
```

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

The generic's type variable.

```rust
pub comptime fn numeric_type(self) -> Option<Type>
```

If this generic is numeric, the numeric type; otherwise `None`.
