[−][src]Trait spreadsheet_ods::style::AttrMap
Container trait for attributes.
Sealed
This trait is only to be used internally.
Required methods
fn attr_map(&self) -> &AttrMapType
Reference to the map of actual attributes.
fn attr_map_mut(&mut self) -> &mut AttrMapType
Reference to the map of actual attributes.
Provided methods
fn has_attr(&self) -> bool
Are there any attributes?
fn add_all(&mut self, data: Vec<(&str, String)>)
Add from Vec
fn set_attr(&mut self, name: &str, value: String)
Adds an attribute.
fn clear_attr(&mut self, name: &str) -> Option<String>
Removes an attribute.
fn attr(&self, name: &str) -> Option<&String>
Returns the attribute.