pub struct ElementPropertyMap { /* private fields */ }Implementations§
Source§impl ElementPropertyMap
impl ElementPropertyMap
pub fn new() -> Self
pub fn get(&self, key: &str) -> Option<&ElementValue>
pub fn insert(&mut self, key: &str, value: ElementValue)
pub fn merge(&mut self, other: &ElementPropertyMap)
pub fn map_iter<T>( &self, f: impl Fn(&Arc<str>, &ElementValue) -> T + 'static, ) -> impl Iterator<Item = T> + '_
Trait Implementations§
Source§impl Clone for ElementPropertyMap
impl Clone for ElementPropertyMap
Source§fn clone(&self) -> ElementPropertyMap
fn clone(&self) -> ElementPropertyMap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ElementPropertyMap
impl Debug for ElementPropertyMap
Source§impl Default for ElementPropertyMap
impl Default for ElementPropertyMap
Source§impl From<&BTreeMap<String, VariableValue>> for ElementPropertyMap
impl From<&BTreeMap<String, VariableValue>> for ElementPropertyMap
Source§impl From<&ElementPropertyMap> for Map<String, Value>
impl From<&ElementPropertyMap> for Map<String, Value>
Source§fn from(val: &ElementPropertyMap) -> Self
fn from(val: &ElementPropertyMap) -> Self
Converts to this type from the input type.
Source§impl From<&ElementPropertyMap> for VariableValue
impl From<&ElementPropertyMap> for VariableValue
Source§fn from(val: &ElementPropertyMap) -> Self
fn from(val: &ElementPropertyMap) -> Self
Converts to this type from the input type.
Source§impl From<Value> for ElementPropertyMap
impl From<Value> for ElementPropertyMap
Source§impl Hash for ElementPropertyMap
impl Hash for ElementPropertyMap
Source§impl Index<&str> for ElementPropertyMap
impl Index<&str> for ElementPropertyMap
Source§impl IndexMut<&str> for ElementPropertyMap
impl IndexMut<&str> for ElementPropertyMap
Source§impl PartialEq for ElementPropertyMap
impl PartialEq for ElementPropertyMap
Source§impl TryInto<ElementPropertyMap> for &VariableValue
impl TryInto<ElementPropertyMap> for &VariableValue
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_into(self) -> Result<ElementPropertyMap, ConversionError>
fn try_into(self) -> Result<ElementPropertyMap, ConversionError>
Performs the conversion.
impl Eq for ElementPropertyMap
impl StructuralPartialEq for ElementPropertyMap
Auto Trait Implementations§
impl Freeze for ElementPropertyMap
impl RefUnwindSafe for ElementPropertyMap
impl Send for ElementPropertyMap
impl Sync for ElementPropertyMap
impl Unpin for ElementPropertyMap
impl UnwindSafe for ElementPropertyMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.