aztec-nr - std

Primitive type fmtstr

A formatted string with interpolated values.

Example

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

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

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.

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).