pub struct PartCurrencySymbolBuilder<'vf, T: ValueFormatTrait> { /* private fields */ }Expand description
The number:currency-symbol element specifies whether a currency symbol is displayed in a currency style. The content of this element is the text that is displayed as the currency symbol. If the element is empty or contains white space characters only, the default currency symbol for the currency style or the language and country of the currency style is displayed.
The number:currency-symbol element is usable within the following element:
- number:currency-style 16.27.7.
The number:currency-symbol element has the following attributes:
- number:country 19.342,
- number:language 19.349,
- number:rfc-language-tag 19.356 and
- number:script 19.357.
The number:currency-symbol element has no child elements. The number:currency-symbol element has character data content.
Implementations§
Source§impl<'vf, T: ValueFormatTrait> PartCurrencySymbolBuilder<'vf, T>
impl<'vf, T: ValueFormatTrait> PartCurrencySymbolBuilder<'vf, T>
Sourcepub fn if_then<F>(self, test: bool, build: F) -> Selfwhere
F: Fn(Self) -> Self,
pub fn if_then<F>(self, test: bool, build: F) -> Selfwhere
F: Fn(Self) -> Self,
Only applies the builder if the test is true.
Sourcepub fn locale(self, v: Locale) -> Self
pub fn locale(self, v: Locale) -> Self
The number:language attribute specifies a language code. The country code is used for formatting properties whose evaluation is locale-dependent. If a language code is not specified, either the system settings or the setting for the system’s language are used, depending on the property whose value should be evaluated.
The number:country attribute specifies a country code for a data style. The country code is used for formatting properties whose evaluation is locale-dependent. If a country is not specified, the system settings are used. The number:country attribute on a number:currency-symbol element, specifies the country of a currency symbol.
The number:script attribute specifies a script code. The script code is used for formatting properties whose evaluation is locale-dependent. The attribute should be used only if necessary according to the rules of §2.2.3 of RFC5646, or its successors.