Struct spreadsheet_ods::format::AttrMap2[][src]

pub struct AttrMap2 { /* fields omitted */ }

Container type for attributes.

Implementations

impl AttrMap2[src]

pub fn new() -> Self[src]

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

Are there any attributes?

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

Add from Slice

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

Adds an attribute.

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

Removes an attribute.

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

Returns the attribute.

pub fn iter(&self) -> AttrMapIter<'_>

Notable traits for AttrMapIter<'a>

impl<'a> Iterator for AttrMapIter<'a> type Item = (&'a DefaultAtom, &'a String);
[src]

Trait Implementations

impl Clone for AttrMap2[src]

impl Debug for AttrMap2[src]

impl Default for AttrMap2[src]

impl<'a> From<&'a AttrMap2> for AttrMapIter<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.