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

# Primitive type fmtstr

Module: `std`

A formatted string with interpolated values.

## Example

```rust
fn main() {
  let x = 1;
  let y = 2;
  let sum = 3;
  let f = f"{x} + {y} is {sum}"; // prints "0x01 + 0x02 is 0x03"
  println(f);
}
```

## Implementations

```rust
impl<let N: u32, T> fmtstr<N, T>
```

```rust
pub comptime fn quoted_contents(self) -> Quoted
```

Returns the format string contents (that is, without the leading and trailing double quotes) as a `Quoted` value.

```rust
pub comptime fn as_quoted_str(self) -> Quoted
```

Returns the format string contents (with the leading and trailing double quotes) as a `Quoted` string literal (not a format string literal).
