ValueFormatTrait

Trait ValueFormatTrait 

Source
pub trait ValueFormatTrait {
Show 19 methods // Required methods fn format_ref(&self) -> ValueFormatRef; fn set_name<S: Into<String>>(&mut self, name: S); fn name(&self) -> &String; fn value_type(&self) -> ValueType; fn set_origin(&mut self, origin: StyleOrigin); fn origin(&self) -> StyleOrigin; fn set_styleuse(&mut self, styleuse: StyleUse); fn styleuse(&self) -> StyleUse; fn attrmap(&self) -> &AttrMap2; fn attrmap_mut(&mut self) -> &mut AttrMap2; fn textstyle(&self) -> &AttrMap2; fn textstyle_mut(&mut self) -> &mut AttrMap2; fn push_part(&mut self, part: FormatPart); fn push_parts(&mut self, partvec: &mut Vec<FormatPart>); fn parts(&self) -> &Vec<FormatPart>; fn parts_mut(&mut self) -> &mut Vec<FormatPart>; fn push_stylemap(&mut self, stylemap: ValueStyleMap); fn stylemaps(&self) -> Option<&Vec<ValueStyleMap>>; fn stylemaps_mut(&mut self) -> &mut Vec<ValueStyleMap>;
}
Expand description

Trait used by the builder types.

Required Methods§

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§