Trait spreadsheet_ods::xmltree::AttrMap2Trait[][src]

pub trait AttrMap2Trait {
    fn attrmap(&self) -> &AttrMap2;
fn attrmap_mut(&mut self) -> &mut AttrMap2; fn is_empty(&self) -> bool { ... }
fn add_all(&mut self, data: &[(&str, String)]) { ... }
fn set_attr(&mut self, name: &str, value: String) { ... }
fn clear_attr(&mut self, name: &str) -> Option<String> { ... }
fn attr(&self, name: &str) -> Option<&String> { ... } }

Allows forwarding for structs that contain an AttrMap2

Required methods

fn attrmap(&self) -> &AttrMap2[src]

Reference to the map of actual attributes.

fn attrmap_mut(&mut self) -> &mut AttrMap2[src]

Reference to the map of actual attributes.

Loading content...

Provided methods

fn is_empty(&self) -> bool[src]

Are there any attributes?

fn add_all(&mut self, data: &[(&str, String)])[src]

Add from Vec

fn set_attr(&mut self, name: &str, value: String)[src]

Adds an attribute.

fn clear_attr(&mut self, name: &str) -> Option<String>[src]

Removes an attribute.

fn attr(&self, name: &str) -> Option<&String>[src]

Returns the attribute.

Loading content...

Implementors

impl AttrMap2Trait for FormatPart[src]

impl AttrMap2Trait for ValueFormat[src]

impl AttrMap2Trait for XmlTag[src]

Loading content...