String Format Block

String Format Block

The String Format block emits bytes constructed by formatting its input values through a Format String parameter.

Parameters

  • Format String (default = "Hello, {}!"): Format string to use for constructing the output bytes. The format string must contain one or more {} placeholders, which will be replaced by the input values in the order they are passed in. The number of inputs must exactly match the number of placeholders. Formatting strings are specified using the Rust String formatting syntax.

Examples

String Format Example