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§
Sourcefn format_ref(&self) -> ValueFormatRef
fn format_ref(&self) -> ValueFormatRef
Returns a reference name for this value format.
Sourcefn set_name<S: Into<String>>(&mut self, name: S)
fn set_name<S: Into<String>>(&mut self, name: S)
The style:name attribute specifies names that reference style mechanisms.
Sourcefn name(&self) -> &String
fn name(&self) -> &String
The style:name attribute specifies names that reference style mechanisms.
Sourcefn value_type(&self) -> ValueType
fn value_type(&self) -> ValueType
Returns the value type.
Sourcefn set_origin(&mut self, origin: StyleOrigin)
fn set_origin(&mut self, origin: StyleOrigin)
Sets the storage location for this ValueFormat. Either content.xml or styles.xml.
Sourcefn origin(&self) -> StyleOrigin
fn origin(&self) -> StyleOrigin
Returns the storage location.
Sourcefn set_styleuse(&mut self, styleuse: StyleUse)
fn set_styleuse(&mut self, styleuse: StyleUse)
How is the style used in the document.
Sourcefn attrmap_mut(&mut self) -> &mut AttrMap2
fn attrmap_mut(&mut self) -> &mut AttrMap2
All direct attributes of the number:xxx-style tag.
Sourcefn textstyle_mut(&mut self) -> &mut AttrMap2
fn textstyle_mut(&mut self) -> &mut AttrMap2
Text style attributes.
Sourcefn push_part(&mut self, part: FormatPart)
fn push_part(&mut self, part: FormatPart)
Adds a format part.
Sourcefn push_parts(&mut self, partvec: &mut Vec<FormatPart>)
fn push_parts(&mut self, partvec: &mut Vec<FormatPart>)
Adds all format parts.
Sourcefn parts(&self) -> &Vec<FormatPart>
fn parts(&self) -> &Vec<FormatPart>
Returns the parts.
Sourcefn parts_mut(&mut self) -> &mut Vec<FormatPart>
fn parts_mut(&mut self) -> &mut Vec<FormatPart>
Returns the mutable parts.
Sourcefn push_stylemap(&mut self, stylemap: ValueStyleMap)
fn push_stylemap(&mut self, stylemap: ValueStyleMap)
Adds a stylemap.
Sourcefn stylemaps(&self) -> Option<&Vec<ValueStyleMap>>
fn stylemaps(&self) -> Option<&Vec<ValueStyleMap>>
Returns the stylemaps
Sourcefn stylemaps_mut(&mut self) -> &mut Vec<ValueStyleMap>
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.