struct
#include <slang/ast/SFormat.h>
FormatOptions A collection of options that can be applied to the SFormat string formatting functions.
Public variables
-
std::
optional<uint32_ t> width - The width of a numeric field. If left empty a default will be used.
-
std::
optional<uint32_ t> precision - An optional precision to apply when formatting floating point values.
- bool leftJustify
- Set to true to left justify instead of right justify the field within its specified width.
- bool zeroPad
- Set to true to zero pad instead of space pad the field within its specified width.