[][src]Trait spreadsheet_ods::style::AttrMap

pub trait AttrMap: Sealed {
    fn attr_map(&self) -> &AttrMapType;
fn attr_map_mut(&mut self) -> &mut AttrMapType; fn has_attr(&self) -> bool { ... }
fn add_all(&mut self, data: Vec<(&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> { ... } }

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.

Loading content...

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.

Loading content...

Implementors

impl AttrMap for FormatPart[src]

impl AttrMap for ValueFormat[src]

impl AttrMap for FontFaceDecl[src]

impl AttrMap for GraphicAttr[src]

impl AttrMap for HeaderFooterAttr[src]

impl AttrMap for PageLayout[src]

impl AttrMap for ParagraphAttr[src]

impl AttrMap for TabStop[src]

impl AttrMap for TableAttr[src]

impl AttrMap for TableCellAttr[src]

impl AttrMap for TableColAttr[src]

impl AttrMap for TableRowAttr[src]

impl AttrMap for TextAttr[src]

impl AttrMap for XmlTag[src]

Loading content...