envzn
0.8 · beta · not released

Library / System / Runtime / FormatValue

UNION

FormatValue

A format call (("$1 of $2")->format(a, b), Stdio->formatPrint, …) takes its arguments as FormatArgument.... A developer never names this type: the compiler builds one per argument at the call site, inside the call's own expression, so each borrow it holds outlives the call (format-argument- design.md). It copies a scalar or a 16-byte value and BORROWS anything wider — a String, a byte buffer, a Formattable object — so a format call copies no argument and allocates nothing per argument.

Fields 17

int64 i
uint64 u
int128 i128
uint128 u128
float64 f
float32 g
boolean b
char32 c
binary o
number n
complex z
decimal128 d
REFERENCE String s
REFERENCE DynamicString ds
REFERENCE ByteBuffer bb
REFERENCE DynamicByteBuffer dbb
REFERENCE Formattable fm