[−][src]Struct mrml::util::attributes::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]
K: ToString,
V: ToString,
I: Iterator<Item = (K, V)>,
pub fn merge_iter<K, V, I>(&mut self, items: I) where
K: ToString,
V: ToString,
I: Iterator<Item = (K, V)>,
[src]
K: ToString,
V: ToString,
I: Iterator<Item = (K, V)>,
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]
self,
key: K,
value: Option<V>
) -> Self
pub fn entries(&self) -> Vec<(&String, &String)>
[src]
Trait Implementations
impl Clone for Attributes
[src]
fn clone(&self) -> Attributes
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Attributes
[src]
impl Default for Attributes
[src]
fn default() -> Attributes
[src]
impl<'_> From<&'_ Attributes> for Attributes
[src]
fn from(value: &Attributes) -> Self
[src]
impl<'a, '_> From<&'_ Node<'a>> for Attributes
[src]
impl Merge<Attributes> for Attributes
[src]
fn concat(self, other: &Attributes) -> Self
[src]
fn merge(&mut self, other: &Attributes)
[src]
impl<'a> Merge<Node<'a>> for Attributes
[src]
impl ToString for Attributes
[src]
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,