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

# Struct IntegerType

Module: `std::meta::typ`

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

An integer type decomposed by [`Type::as_integer`](/aztec-nr-api/v6.0.0/std/primitive.Type.md#as_integer) into its signedness and bit width.

## Implementations

```rust
impl IntegerType
```

```rust
pub comptime fn is_signed(self) -> bool
```

`true` if the integer type is signed.

```rust
pub comptime fn bits(self) -> u8
```

The bit width of the integer type.
