pub enum Style {
Show 16 variants
None,
Octal,
Hex,
UpperHex,
Exponential,
UpperExponential,
General,
UpperGeneral,
HexFloat,
UpperHexFloat,
Upper,
Pointer,
Debug,
HexDebug,
UpperHexDebug,
Binary,
}Expand description
The abstract formatting style for a conversion.
Variants§
None
No style specified, use defaults.
Octal
Octal rendering (i.e. “%o” or “{:o}”).
Hex
Hexadecimal rendering (i.e. “%x” or “{:x}”).
UpperHex
Upper case hexadecimal rendering (i.e. “%X” or “{:X}”).
Exponential
Exponential rendering (i.e. “%e” or “{:e}”).
UpperExponential
Upper case exponential rendering (i.e. “%E” or “{:E}”.
General
Compact shortest floating point representation (i.e. “%g” or “{:g}”).
UpperGeneral
Upper case compact shortest floating point representation (i.e. “%G” or “{:G}”).
HexFloat
Hexadecimal floating point representation (i.e. “%a” or “{:a}”).
UpperHexFloat
Upper case hexadecimal floating point representation (i.e. “%A” or “{:A}”).
Upper
Upper case floating point representation (i.e. “%F” or “{:F}”).
Pointer
Pointer type rendering (i.e. “%p” or “{:p}”).
Debug
core::fmt’s {:?}
HexDebug
core::fmt’s {:x?}
UpperHexDebug
core::fmt’s {:X?}
Binary
Unsupported binary rendering
This variant exists so that the proc macros can give useful error messages.