pub struct PartHoursBuilder<'vf, T: ValueFormatTrait> { /* private fields */ }
Expand description
The number:hours element specifies whether hours are displayed as part of a date or time.
The number:hours element is usable within the following elements:
- number:datestyle 16.27.10 and
- number:time-style 16.27.18.
The number:hours element has the following attribute:
- number:style 19.358.5.
The number:hours element has no child elements.
Implementations§
Source§impl<'vf, T: ValueFormatTrait> PartHoursBuilder<'vf, T>
impl<'vf, T: ValueFormatTrait> PartHoursBuilder<'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.