Trait spreadsheet_ods::format::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§
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.
Object Safety§
This trait is not object safe.