[][src]Struct mrml::util::attributes::Attributes

pub struct Attributes(_);

Implementations

impl Attributes[src]

pub fn new() -> Self[src]

pub fn inner(&self) -> &HashMap<String, String>[src]

pub fn concat_iter<K, V, I>(self, items: I) -> Self where
    K: ToString,
    V: ToString,
    I: Iterator<Item = (K, V)>, 
[src]

pub fn merge_iter<K, V, I>(&mut self, items: I) where
    K: ToString,
    V: ToString,
    I: Iterator<Item = (K, V)>, 
[src]

pub fn has<K: ToString>(&self, key: K) -> bool[src]

pub fn get<K: ToString>(&self, key: K) -> Option<&String>[src]

pub fn set<K: ToString, V: ToString>(&mut self, key: K, value: V)[src]

pub fn add<K: ToString, V: ToString>(self, key: K, value: V) -> Self[src]

pub fn maybe_set<K: ToString, V: ToString>(&mut self, key: K, value: Option<V>)[src]

pub fn maybe_add<K: ToString, V: ToString>(
    self,
    key: K,
    value: Option<V>
) -> Self
[src]

pub fn entries(&self) -> Vec<(&String, &String)>[src]

Trait Implementations

impl Clone for Attributes[src]

impl Debug for Attributes[src]

impl Default for Attributes[src]

impl<'_> From<&'_ Attributes> for Attributes[src]

impl<'a, '_> From<&'_ Node<'a>> for Attributes[src]

impl Merge<Attributes> for Attributes[src]

impl<'a> Merge<Node<'a>> for Attributes[src]

impl ToString for Attributes[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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,