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

# Struct IntegerLiteral

Module: `std::meta::expr`

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

An integer literal decomposed by [`Expr::as_integer`](/aztec-nr-api/v6.0.0/std/primitive.Expr.md#as_integer).

## Implementations

```rust
impl IntegerLiteral
```

```rust
pub comptime fn value(self) -> Field
```

The literal's value as a field.

Negative integers are encoded as the equivalent negative field value.
