Struct spreadsheet_ods::format::ValueFormatTimeDuration

source ·
pub struct ValueFormatTimeDuration { /* private fields */ }
Expand description

Formatting for Boolean.

Implementations§

source§

impl ValueFormatTimeDuration

source

pub fn new_empty() -> Self

New, empty.

source

pub fn new_with_name<S: AsRef<str>>(name: S) -> Self

👎Deprecated

New, with name.

source

pub fn new_named<S: AsRef<str>>(name: S) -> Self

New, with name.

source

pub fn new_localized<S: AsRef<str>>(name: S, locale: Locale) -> Self

New, with name.

source

pub fn set_locale(&mut self, locale: Locale)

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: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.

source

pub fn locale(&self) -> Option<Locale>

Returns number:language, number:country and number:script as a locale.

source

pub fn set_title<S: Into<String>>(&mut self, title: S)

The number:title attribute specifies the title of a data style.

source

pub fn title(&self) -> Option<&str>

The number:title attribute specifies the title of a data style.

source

pub fn set_transliteration_locale(&mut self, locale: Locale)

The number:transliteration-language attribute specifies a language code in conformance with RFC5646. If no language/country (locale) combination is specified, the locale of the data style is used

The number:transliteration-country attribute specifies a country code in conformance with RFC5646. If no language/country (locale) combination is specified, the locale of the data style is used.

source

pub fn transliteration_locale(&self) -> Option<Locale>

Returns number:transliteration_language and number:transliteration_country as a locale.

source

pub fn set_transliteration_format(&mut self, format: char)

The number:transliteration-format attribute specifies which number characters to use.

The value of the number:transliteration-format attribute shall be a decimal “DIGIT ONE” character with numeric value 1 as listed in the Unicode Character Database file UnicodeData.txt with value ‘Nd’ (Numeric decimal digit) in the General_Category/Numeric_Type property field 6 and value ‘1’ in the Numeric_Value fields 7 and 8, respectively as listed in DerivedNumericValues.txt

If no format is specified the default ASCII representation of Latin-Indic digits is used, other transliteration attributes present in that case are ignored.

The default value for this attribute is 1

source

pub fn transliteration_format(&self) -> Option<char>

Transliteration format.

source

pub fn set_transliteration_style(&mut self, style: TransliterationStyle)

The number:transliteration-style attribute specifies the transliteration format of a number system.

The semantics of the values of the number:transliteration-style attribute are locale- and implementation-dependent.

The default value for this attribute is short.

source

pub fn transliteration_style( &self, ) -> Result<Option<TransliterationStyle>, OdsError>

Transliteration style.

source

pub fn set_display_name<S: Into<String>>(&mut self, name: S)

The style:display-name attribute specifies the name of a style as it should appear in the user interface. If this attribute is not present, the display name should be the same as the style name.

source

pub fn set_volatile(&mut self, volatile: bool)

The style:volatile attribute specifies whether unused style in a document are retained or discarded by consumers. The defined values for the style:volatile attribute are:

  • false: consumers should discard the unused styles.
  • true: consumers should keep unused styles.
source

pub fn volatile(&self) -> Option<bool>

Volatile format.

source

pub fn set_background_color(&mut self, color: Rgb<u8>)

The fo:background-color attribute specifies a background color for characters, paragraphs, text sections, frames, page bodies, headers, footers, table cells, table rows and tables. This can be transparent or a color. If the value is set to transparent, it switches off any background image that is specified by a style:background-image 17.3.

If a value for a draw:fill attribute is provided in a style, any background image that is specified by a style:background-image element and any background color that is specified with the fo:background-color attribute are switched off.

source

pub fn set_color(&mut self, color: Rgb<u8>)

See §7.17.1 of XSL. In the OpenDocument XSL-compatible namespace, the fo:color attribute does not support the inherit value.

source

pub fn set_font_name<S: Into<String>>(&mut self, name: S)

The style:font-name attribute specifies a font that is declared by a style:font-face 16.23 element with a style:name 19.502 attribute whose name is the same as that of the style:font-name attribute value.

This attribute is evaluated for any UNICODE character whose script type is latin. 20.358

source

pub fn set_font_size(&mut self, size: FontSize)

See §7.8.4 of XSL. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358 The value of this attribute is either an absolute length or a percentage as described in §7.8.4 of XSL. In contrast to XSL, percentage values can be used within common styles only and are based on the font height of the parent style rather than to the font height of the attributes neighborhood. Absolute font heights and relative font heights are not supported.

Note: The style:font-size-asian attribute (20.284) is evaluated for UNICODE characters whose type is asian. The style:font-size-complex attribute (20.285) is evaluated for UNICODE characters whose type is complex.

source

pub fn set_font_size_rel(&mut self, size: FontSize)

The style:font-size-rel attribute specifies a relative font size change. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358 This attribute specifies a relative font size change as a length. It cannot be used within automatic styles. This attribute changes the font size based on the font size of the parent style.

source

pub fn set_font_style(&mut self, style: FontStyle)

See §7.8.7 of XSL. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358

source

pub fn set_font_italic(&mut self)

Set the font-style to italic.

source

pub fn set_font_weight(&mut self, weight: FontWeight)

See §7.8.9 of XSL. This attribute is evaluated for any UNICODE character whose script type is latin. 20.358

source

pub fn set_font_bold(&mut self)

Sets the font-weight to bold. See set_font_weight.

source

pub fn set_font_variant(&mut self, var: FontVariant)

See §7.8.8 of XSL.

source

pub fn set_font_attr(&mut self, size: FontSize, bold: bool, italic: bool)

Combined font attributes.

source

pub fn set_locale_asian(&mut self, locale: Locale)

Sets the attributes for fo:language, fo:country and fo:script to the given locale.

These attributes are evaluated for any UNICODE characters whose script type is asian.

source

pub fn set_font_name_asian<S: Into<String>>(&mut self, name: S)

The style:font-name attribute specifies a font that is declared by a style:font-face 16.23 element with a style:name 19.502 attribute whose name is the same as that of the style:font-name attribute value.

This attribute is evaluated for any UNICODE character whose script type is asian. 20.358

source

pub fn set_font_size_asian(&mut self, size: FontSize)

See §7.8.4 of XSL. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358 The value of this attribute is either an absolute length or a percentage as described in §7.8.4 of XSL. In contrast to XSL, percentage values can be used within common styles only and are based on the font height of the parent style rather than to the font height of the attributes neighborhood. Absolute font heights and relative font heights are not supported.

Note: The style:font-size-asian attribute (20.284) is evaluated for UNICODE characters whose type is asian. The style:font-sizecomplex attribute (20.285) is evaluated for UNICODE characters whose type is complex.

source

pub fn set_font_size_rel_asian(&mut self, size: FontSize)

The style:font-size-rel attribute specifies a relative font size change. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358 This attribute specifies a relative font size change as a length. It cannot be used within automatic styles. This attribute changes the font size based on the font size of the parent style.

source

pub fn set_font_style_asian(&mut self, style: FontStyle)

See §7.8.7 of XSL. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358

source

pub fn set_font_italic_asian(&mut self)

Set the font-style to italic.

source

pub fn set_font_weight_asian(&mut self, weight: FontWeight)

See §7.8.9 of XSL. This attribute is evaluated for any UNICODE character whose script type is asian. 20.358

source

pub fn set_font_bold_asian(&mut self)

Sets the font-weight to bold. See set_font_weight.

source

pub fn set_font_attr_asian(&mut self, size: FontSize, bold: bool, italic: bool)

Combined font attributes.

source

pub fn set_locale_complex(&mut self, locale: Locale)

Sets the attributes for fo:language, fo:country and fo:script to the given locale.

These attributes are evaluated for any UNICODE characters whose script type is complex.

source

pub fn set_font_name_complex<S: Into<String>>(&mut self, name: S)

The style:font-name attribute specifies a font that is declared by a style:font-face 16.23 element with a style:name 19.502 attribute whose name is the same as that of the style:font-name attribute value.

This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

source

pub fn set_font_size_complex(&mut self, size: FontSize)

See §7.8.4 of XSL. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358 The value of this attribute is either an absolute length or a percentage as described in §7.8.4 of XSL. In contrast to XSL, percentage values can be used within common styles only and are based on the font height of the parent style rather than to the font height of the attributes neighborhood. Absolute font heights and relative font heights are not supported.

Note: The style:font-size-asian attribute (20.284) is evaluated for UNICODE characters whose type is asian. The style:font-sizecomplex attribute (20.285) is evaluated for UNICODE characters whose type is complex.

source

pub fn set_font_size_rel_complex(&mut self, size: FontSize)

The style:font-size-rel attribute specifies a relative font size change. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358 This attribute specifies a relative font size change as a length. It cannot be used within automatic styles. This attribute changes the font size based on the font size of the parent style.

source

pub fn set_font_style_complex(&mut self, style: FontStyle)

See §7.8.7 of XSL. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

source

pub fn set_font_italic_complex(&mut self)

Set the font-style to italic. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

source

pub fn set_font_weight_complex(&mut self, weight: FontWeight)

See §7.8.9 of XSL. This attribute is evaluated for any UNICODE character whose script type is complex. 20.358

source

pub fn set_font_bold_complex(&mut self)

Sets the font-weight to bold. See set_font_weight.

source

pub fn set_font_attr_complex( &mut self, size: FontSize, bold: bool, italic: bool, )

Combined font attributes.

source

pub fn set_hyphenate(&mut self, hyphenate: bool)

See §7.9.4 of XSL.

source

pub fn set_hyphenation_push_char_count(&mut self, count: u32)

See §7.10.6 of XSL

source

pub fn set_hyphenation_remain_char_count(&mut self, count: u32)

See §7.10.7 of XSL

source

pub fn set_letter_spacing(&mut self, spacing: LetterSpacing)

See §7.16.2 of XSL. Sets the letter spacing.

source

pub fn set_text_shadow( &mut self, x_offset: Length, y_offset: Length, blur: Option<Length>, color: Rgb<u8>, )

The fo:text-shadow attribute specifies the text shadow style to use.

source

pub fn set_text_transform(&mut self, trans: TextTransform)

See §7.16.6 of XSL. If fo:text-transform and fo:font-variant 20.192 attributes are used simultaneously and have different values than normal and none, the result is undefined. Note: In consumers, the fo:text-transform and fo:font-variant attributes are mutually exclusive

source

pub fn set_font_relief(&mut self, relief: TextRelief)

The style:font-relief attribute specifies whether a font should be embossed, engraved, or neither. The defined values for the style:font-relief attribute are:

  • embossed: characters are embossed.
  • engraved: characters are engraved.
  • none: characters are neither embossed or engraved.
source

pub fn set_text_position(&mut self, pos: TextPosition, scale: Option<Percent>)

The style:text-position attribute specifies whether text is positioned above or below the baseline and to specify the relative font height that is used for this text. This attribute can have one or two values. The first value shall be present and specifies the vertical text position as a percentage of the current font height or it takes one of the values sub or super. Negative percentages or the sub value place the text below the baseline. Positive percentages or the super value place the text above the baseline. If sub or super is specified, the consumer chooses an appropriate text position. The second value may be present and specifies the font height as a percentage of the current font-height. If this value is not specified, an appropriate font height is used.

source

pub fn set_rotation_angle(&mut self, angle: Angle)

The style:rotation-angle attribute specifies the rotation angle of content.

source

pub fn set_rotation_scale(&mut self, scale: RotationScale)

The style:text-rotation-scale attribute specifies whether for rotated text the width of the text should be scaled to fit into the current line height or the width of the text should remain fixed, therefore changing the current line height. The defined values for the style:text-rotation-scale attribute are:

  • fixed: width of text should remain fixed.
  • line-height: width of text should be scaled to fit the current line height.
source

pub fn set_letter_kerning(&mut self, kerning: bool)

The style:letter-kerning attribute specifies whether kerning between characters is enabled or disabled.

source

pub fn set_text_combine(&mut self, pos: TextCombine)

The style:text-combine attribute specifies whether to combine characters so that they are displayed within two lines.

The defined values for the style:text-combine attribute are:

  • letters: Display text in Kumimoji. Up to five (5) characters are combined within two lines and are displayed with a reduced size in a single wide-cell character. Additional characters are displayed as normal text.
  • lines: Displays text in Warichu. All characters with the style:text-combine attribute that immediately follow each other are displayed within two lines of approximately the same length. A line break may occur between any two characters to meet this constraint.
  • none: characters should not be combined.
source

pub fn set_text_combine_start_char(&mut self, c: char)

The style:text-combine-start-char attribute specifies the start character that is displayed before a portion of text whose style:text-combine 20.367 attribute has a value of lines.

source

pub fn set_text_combine_end_char(&mut self, c: char)

The style:text-combine-end-char attribute specifies the end character that is displayed after a portion of text whose style:text-combine 20.367 attribute has a value of lines.

source

pub fn set_text_emphasize( &mut self, emphasize: TextEmphasize, position: TextEmphasizePosition, )

The style:text-emphasize attribute specifies emphasis in a text composed of UNICODE characters whose script type is asian. 20.358 The value of this attribute consists of two white space-separated values. The first value represents the style to use for emphasis. The second value represents the position of the emphasis and it can be above or below. If the first value is none, the second value can be omitted. The defined values for the style:text-emphasize attribute are:

  • accent: calligraphic accent strokes.
  • circle: hollow circles.
  • disc: filled circles.
  • dot: calligraphic dot.
  • none: no emphasis marks.
source

pub fn set_text_line_through_color(&mut self, color: Rgb<u8>)

The style:text-line-through-color attribute specifies the color that is used for linethrough text. The defined values for the style:text-line-through-color attribute are:

  • font-color: current text color is used for underlining.
  • a value of type color 18.3.9
source

pub fn set_text_line_through_mode(&mut self, lmode: LineMode)

The style:text-line-through-mode attribute specifies whether lining through is applied to words only or to portions of text. The defined values for the style:text-line-through-mode attribute are:

  • continuous: lining is applied to words and separating spaces.
  • skip-white-space: lining is not applied to spaces between words.
source

pub fn set_text_line_through_style(&mut self, lstyle: LineStyle)

The style:text-line-through-style attribute specifies a style for rendering a line-through text. The defined values for the style:text-line-through-style attribute are:

  • none: text has no line through it.
  • dash: text has a dashed line through it.
  • dot-dash: text has a line whose repeating pattern is a dot followed by a dash through it.
  • dot-dot-dash: text has a line whose repeating pattern is two dots followed by a dash through it.
  • dotted: text has a dotted line through it.
  • long-dash: text has a dashed line whose dashes are longer than the ones from the dashed line for value dash through it.
  • solid: text has a solid line through it.
  • wave: text has a wavy line through it. Note: The definitions of the values of the style:text-line-through-style attribute are based on the text decoration style ‘text-line-through-style’ from CSS3Text, §9.2.
source

pub fn set_text_line_through_text<S: Into<String>>(&mut self, text: S)

The style:text-line-through-text attribute specifies a text that is used for line-through. The attribute will be evaluated only if the value of style:text-line-through-style 20.373 attribute is different than none. If the attribute value is not empty, the attribute value string is used for line-through instead of the line style that has been specified by the style:text-line-through-style attribute. Consumers that do not support line-through with text should ignore the attribute, and should use the line style specified by the style:text-line-through-style attribute. Consumers that support line-through with single characters only, should use the first character of the value for line-through, if the style:text-line-through-text attribute value has more than one character. Consumers that support line-through with specific characters only (like ”x” or ”/” (U+002F, SOLIDUS) should use one of these characters if the attribute specifies characters that are not supported.

source

pub fn set_text_line_through_text_style(&mut self, style_ref: TextStyleRef)

The style:text-line-through-text-style specifies a text style that is applied to text-linethrough characters. It is not applied to line-through lines. If the attribute appears in an automatic style, it may reference either an automatic text style or a common style. If the attribute appears in a common style, it may reference a common style only.

source

pub fn set_text_line_through_type(&mut self, ltype: LineType)

The style:text-line-through-type attribute specifies whether text is lined through, and if so, whether a single or double line will be used. The defined values for the style:text-line-through-type attribute are:

  • double: a double line should be used for a line-through text.
  • none: deprecated.
  • single: a single line should be used for a line-through text. Every occurrence of the style:text-line-through-type attribute should be accompanied by an occurrence of the style:text-line-through-style 20.373 attribute on the same element. There should not be an occurrence of the style:text-line-through-type attribute if the value of the style:text-line-through-sty
source

pub fn set_text_line_through_width(&mut self, lwidth: LineWidth)

The style:text-line-through-width attribute specifies the width of a line-through line. The value bold specifies a line width that is calculated from the font sizes like an auto width, but is wider than an auto width. The defined values for the style:text-line-through-width attribute are:

  • auto: the width of a line-through should be calculated from the font size of the text where the line-through will appear.
  • bold: the width of a line-through should be calculated from the font size of the text where the line-through will appear but is wider than for the value of auto.
  • a value of type percent 18.3.23
  • a value of type positiveInteger 18.2
  • a value of type positiveLength 18.3.26 The line-through text styles referenced by the values dash, medium, thick and thin, are implementation-defined. Thin shall be smaller width than medium and medium shall be a smaller width than thick.
source

pub fn set_font_text_outline(&mut self, outline: bool)

The style:text-outline attribute specifies whether to display an outline of text or the text itself.

source

pub fn set_text_overline_color(&mut self, color: Rgb<u8>)

The style:text-overline-color attribute specifies a color that is used to overline text.

The defined values for the style:text-overline-color attribute are:

  • font-color: the current text color is used for overlining.
  • a value of type color
source

pub fn set_text_overline_mode(&mut self, lmode: LineMode)

The style:text-overline-mode attribute specifies whether overlining is applied to words only or to portions of text.

source

pub fn set_text_overline_style(&mut self, lstyle: LineStyle)

The style:text-overline-style attribute specifies a style for rendering a line over text.

source

pub fn set_text_overline_type(&mut self, ltype: LineType)

The style:text-overline-type attribute specifies the type of overlining applied to a text.

source

pub fn set_text_overline_width(&mut self, lwidth: LineWidth)

The style:text-overline-width attribute specifies the width of an overline. The value bold specifies a line width that is calculated from the font sizes like an auto width, but is wider than an auto width.

source

pub fn set_text_underline_color(&mut self, color: Rgb<u8>)

The style:text-underline-color attribute specifies a color that is used to underline text. The defined values for the style:text-underline-color attribute are:

  • font-color: the current text color is used for underlining.
  • a value of type color: the color to be used for underlining.
source

pub fn set_text_underline_mode(&mut self, lmode: LineMode)

The style:text-underline-mode attribute specifies whether underlining is applied to words only or to portions of text. If underlining is applied to text portions, the spaces between words and the words are underlined.

source

pub fn set_text_underline_style(&mut self, lstyle: LineStyle)

The style:text-underline-style attribute specifies a style for underlining text

source

pub fn set_text_underline_type(&mut self, ltype: LineType)

The style:text-underline-type attribute specifies the type of underlining applied to a text

source

pub fn set_text_underline_width(&mut self, lwidth: LineWidth)

The style:text-underline-width attribute specifies the width of an underline. The value bold specifies a line width that is calculated from the font sizes like an auto width, but is wider than an auto width.

source

pub fn set_use_window_font_color(&mut self, window_color: bool)

The style:use-window-font-color attribute specifies whether the window foreground color should be used as the foreground color for a light background color and white for a dark background color. The determination of light or dark color is implementation-defined.

source

pub fn set_text_condition(&mut self, cond: TextCondition)

The text:condition attribute specifies the display of text. The defined value of the text:condition attribute is none, which means text is hidden.

source

pub fn set_display(&mut self, cond: TextDisplay)

The text:display attribute specifies whether text is hidden. The defined values for the text:display attribute are:

  • condition: text is hidden under the condition specified in the text:condition 20.426 attribute.
  • none: text is hidden unconditionally.
  • true: text is displayed. This is the default setting
source§

impl ValueFormatTimeDuration

source

pub fn set_format_source(&mut self, source: FormatSource)

The number:format-source attribute specifies the source of definitions of the short and long display formats.

The defined values for the number:format-source attribute are:

  • fixed: the values short and long of the number:style attribute are defined by this standard.
  • language: the meaning of the values long and short of the number:style attribute depend upon the number:language and number:country attributes of the date style. If neither of those attributes are specified, consumers should use their default locale for short and long date and time formats.

The default value for this attribute is fixed.

This attribute is valid for ValueType::DateTime and ValueType::TimeDuration.

source

pub fn format_source(&mut self) -> Result<Option<FormatSource>, OdsError>

The source of definitions of the short and long display formats.

source

pub fn set_truncate_on_overflow(&mut self, truncate: bool)

The number:truncate-on-overflow attribute specifies if a time or duration for which the value to be displayed by the largest time component specified in the style is too large to be displayed using the value range for number:hours 16.29.20 (0 to 23), or number:minutes 16.29.21 or number:seconds 16.29.22 (0 to 59) is truncated or if the value range of this component is extended. The largest time component is those for which a value of “1” represents the longest period of time. If a value gets truncated, then its value is displayed modulo 24 (for number:hours) or modulo 60 (for number:minutes and number:seconds).

If the value range of a component get extended, then values larger than 23 or 59 are displayed. The defined values for the number:truncate-on-overflow element are:

  • false: the value range of the component is extended.
  • true: the value range of the component is not extended.

The default value for this attribute is true.

This attribute is valid for ValueType::TimeDuration.

source

pub fn truncate_on_overflow(&mut self) -> Option<bool>

Truncate time-values on overflow.

source

pub fn part_am_pm(&mut self) -> PartAmPmBuilder<'_, Self>

Adds a format part to this format.

The number:am-pm element specifies whether AM/PM is included as part of a date or time. If a number:am-pm element is contained in a date or time style, hours are displayed using values from 1 to 12 only.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration
source

pub fn part_fill_character(&mut self) -> PartFillCharacterBuilder<'_, Self>

Adds a format part to this format.

The number:fill-character element specifies a Unicode character that is displayed repeatedly at the position where the element occurs. The character specified is repeated as many times as possible, but the total resulting string shall not exceed the given cell content area.

Fill characters may not fill all the available space in a cell. The distribution of the remaining space is implementation-dependent.

Can be used with ValueTypes:

  • Currency
  • DateTime
  • Number
  • Percentage
  • Text
  • TimeDuration
source

pub fn part_hours(&mut self) -> PartHoursBuilder<'_, Self>

Adds a format part to this format.

The number:hours element specifies whether hours are displayed as part of a date or time.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration
source

pub fn part_minutes(&mut self) -> PartMinutesBuilder<'_, Self>

Adds a format part to this format.

The number:minutes element specifies whether minutes are displayed as part of a date or time.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration
source

pub fn part_seconds(&mut self) -> PartSecondsBuilder<'_, Self>

Adds a format part to this format.

The number:seconds element specifies whether seconds are displayed as part of a date or time.

Can be used with ValueTypes:

  • DateTime
  • TimeDuration
source

pub fn part_text<S: Into<String>>( &mut self, text: S, ) -> PartTextBuilder<'_, Self>

Adds a format part to this format.

The number:text element contains any fixed text for a data style.

Can be used with ValueTypes:

  • Boolean
  • Currency
  • DateTime
  • Number
  • Percentage
  • Text
  • TimeDuration
source

pub fn push_am_pm(&mut self)

👎Deprecated

Use part_am_pm instead.

source

pub fn push_hours(&mut self, style: FormatNumberStyle)

👎Deprecated

Use part_hours instead.

source

pub fn push_minutes(&mut self, style: FormatNumberStyle)

👎Deprecated

Use part_minutes instead.

source

pub fn push_seconds(&mut self, style: FormatNumberStyle, decimal_places: u8)

👎Deprecated

Use part_seconds.

source

pub fn push_text<S: Into<String>>(&mut self, text: S)

👎Deprecated

Use part_text instead.

Trait Implementations§

source§

impl Clone for ValueFormatTimeDuration

source§

fn clone(&self) -> ValueFormatTimeDuration

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ValueFormatTimeDuration

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl GetSize for ValueFormatTimeDuration

source§

fn get_heap_size(&self) -> usize

Determines how many bytes this object occupies inside the heap. Read more
source§

fn get_stack_size() -> usize

Determines how may bytes this object occupies inside the stack. Read more
source§

fn get_size(&self) -> usize

Determines the total size of the object. Read more
source§

impl ValueFormatTrait for ValueFormatTimeDuration

source§

fn format_ref(&self) -> ValueFormatRef

Returns a reference name for this value format.

source§

fn set_name<S: Into<String>>(&mut self, name: S)

The style:name attribute specifies names that reference style mechanisms.

source§

fn name(&self) -> &String

The style:name attribute specifies names that reference style mechanisms.

source§

fn value_type(&self) -> ValueType

Returns the value type.

source§

fn set_origin(&mut self, origin: StyleOrigin)

Sets the storage location for this ValueFormat. Either content.xml or styles.xml.

source§

fn origin(&self) -> StyleOrigin

Returns the storage location.

source§

fn set_styleuse(&mut self, styleuse: StyleUse)

How is the style used in the document.

source§

fn styleuse(&self) -> StyleUse

How is the style used in the document.

source§

fn attrmap(&self) -> &AttrMap2

All direct attributes of the number:xxx-style tag.

source§

fn attrmap_mut(&mut self) -> &mut AttrMap2

All direct attributes of the number:xxx-style tag.

source§

fn textstyle(&self) -> &AttrMap2

Text style attributes.

source§

fn textstyle_mut(&mut self) -> &mut AttrMap2

Text style attributes.

source§

fn push_part(&mut self, part: FormatPart)

Adds a format part.

source§

fn push_parts(&mut self, partvec: &mut Vec<FormatPart>)

Adds all format parts.

source§

fn parts(&self) -> &Vec<FormatPart>

Returns the parts.

source§

fn parts_mut(&mut self) -> &mut Vec<FormatPart>

Returns the mutable parts.

source§

fn push_stylemap(&mut self, stylemap: ValueStyleMap)

Adds a stylemap.

source§

fn stylemaps(&self) -> Option<&Vec<ValueStyleMap>>

Returns the stylemaps

source§

fn stylemaps_mut(&mut self) -> &mut Vec<ValueStyleMap>

Returns the mutable stylemap.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.