pub struct PartQuarterBuilder<'vf, T: ValueFormatTrait> { /* private fields */ }Expand description
The number:quarter element specifies a quarter of the year in a date.
The number:quarter element is usable within the following element:
- number:datestyle 16.27.10.
The number:quarter element has the following attributes:
- number:calendar 19.341 and
- number:style 19.358.8.
The number:quarter element has no child elements
Implementations§
Source§impl<'vf, T: ValueFormatTrait> PartQuarterBuilder<'vf, T>
impl<'vf, T: ValueFormatTrait> PartQuarterBuilder<'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 long_style(self) -> Self
pub fn long_style(self) -> Self
The number:style attribute specifies whether the content of a time element is displayed in short or long format. The value of this attribute can be short or long. The meaning of these values depends on the value of the number:format-source 19.348 attribute that is attached to a date or time style.
Sourcepub fn short_style(self) -> Self
pub fn short_style(self) -> Self
The number:style attribute specifies whether the content of a time element is displayed in short or long format. The value of this attribute can be short or long. The meaning of these values depends on the value of the number:format-source 19.348 attribute that is attached to a date or time style.
Sourcepub fn style(self, style: FormatNumberStyle) -> Self
pub fn style(self, style: FormatNumberStyle) -> Self
The number:style attribute specifies whether the content of a time element is displayed in short or long format. The value of this attribute can be short or long. The meaning of these values depends on the value of the number:format-source 19.348 attribute that is attached to a date or time style.
Sourcepub fn calendar(self, calendar: FormatCalendarStyle) -> Self
pub fn calendar(self, calendar: FormatCalendarStyle) -> Self
The number:calendar attribute specifies the calendar system used to extract parts of a date.
The attribute value may also be a string value. If this attribute is not specified, the default calendar system for the locale of the data style is used.