| ... | @@ -40,9 +40,9 @@ pub const FormatOptions = struct { | ... | @@ -40,9 +40,9 @@ pub const FormatOptions = struct { |
| 40 | /// - when using a field name, you are required to enclose the field name (an identifier) in square | 40 | /// - when using a field name, you are required to enclose the field name (an identifier) in square |
| 41 | /// brackets, e.g. {[score]...} as opposed to the numeric index form which can be written e.g. {2...} | 41 | /// brackets, e.g. {[score]...} as opposed to the numeric index form which can be written e.g. {2...} |
| 42 | /// - *specifier* is a type-dependent formatting option that determines how a type should formatted (see below) | 42 | /// - *specifier* is a type-dependent formatting option that determines how a type should formatted (see below) |
| 43 | /// - *fill* is a single character which is used to pad the formatted text | 43 | /// - *fill* is a single unicode codepoint which is used to pad the formatted text |
| 44 | /// - *alignment* is one of the three characters `<`, `^`, or `>` to make the text left-, center-, or right-aligned, respectively | 44 | /// - *alignment* is one of the three bytes '<', '^', or '>' to make the text left-, center-, or right-aligned, respectively |
| 45 | /// - *width* is the total width of the field in characters | 45 | /// - *width* is the total width of the field in unicode codepoints |
| 46 | /// - *precision* specifies how many decimals a formatted number should have | 46 | /// - *precision* specifies how many decimals a formatted number should have |
| 47 | /// | 47 | /// |
| 48 | /// Note that most of the parameters are optional and may be omitted. Also you can leave out separators like `:` and `.` when | 48 | /// Note that most of the parameters are optional and may be omitted. Also you can leave out separators like `:` and `.` when |