pub struct FormattingOptions { }
ð¬This is a nightly-only experimental API. (formatting_options
#118117) Expand description
Options for formatting.
FormattingOptions
is a Formatter
without an attached Write
trait. It is mainly used to construct Formatter
instances.
formatting_options
#118117)
Construct a new FormatterBuilder
with the supplied Write
trait object for output that is equivalent to the {}
formatting specifier:
DebugAsHex
output mode.formatting_options
#118117)
Sets or removes the sign (the +
or the -
flag).
+
: This is intended for numeric types and indicates that the sign should always be printed. By default only the negative sign of signed values is printed, and the sign of positive or unsigned values is omitted. This flag indicates that the correct sign (+ or -) should always be printed.-
: Currently not usedformatting_options
#118117)
Sets or unsets the 0
flag.
This is used to indicate for integer formats that the padding to width should both be done with a 0 character as well as be sign-aware
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
Sets or unsets the #
flag.
This flag indicates that the âalternateâ form of printing should be used. The alternate forms are:
Debug
: pretty-print the Debug
formatting (adds linebreaks and indentation)LowerHex
as well as UpperHex
- precedes the argument with a 0x
Octal
- precedes the argument with a 0b
Binary
- precedes the argument with a 0o
formatting_options
#118117)
Sets the fill character.
The optional fill character and alignment is provided normally in conjunction with the width parameter. This indicates that if the value being formatted is smaller than width some extra characters will be printed around it.
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
Sets or removes the alignment.
The alignment specifies how the value being formatted should be positioned if it is smaller than the width of the formatter.
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
Sets or removes the width.
This is a parameter for the âminimum widthâ that the format should take up. If the valueâs string does not fill up this many characters, then the padding specified by FormattingOptions::fill
/FormattingOptions::align
will be used to take up the required space.
formatting_options
#118117)
Sets or removes the precision.
formatting_options
#118117)
Specifies whether the Debug
trait should use lower-/upper-case hexadecimal or normal integers
formatting_options
#118117)
Returns the current sign (the +
or the -
flag).
formatting_options
#118117)
Returns the current 0
flag.
formatting_options
#118117)
Returns the current #
flag.
formatting_options
#118117)
Returns the current fill character.
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
Returns the current alignment.
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
Returns the current width.
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
Returns the current precision.
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
Returns the current precision.
Source ð¬This is a nightly-only experimental API. (formatting_options
#118117)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4