slang::ast::SFormat::FormatOptions struct

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.