Struct stdweb::web::StringMap
[−]
[src]
pub struct StringMap(_);
Used by the dataset
HTML attribute to represent data for custom attributes added to elements.
Methods
impl StringMap
[src]
fn get(&self, key: &str) -> Option<String>
Returns a value corresponding to the key.
fn insert(&self, key: &str, value: &str)
Inserts a key-value pair into the map.
fn remove(&self, key: &str)
Removes a key from the map.
fn contains_key(&self, key: &str) -> bool
Returns true if the map contains a value for the specified key.
Trait Implementations
impl Debug for StringMap
[src]
impl Clone for StringMap
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for StringMap
[src]
impl<T: TryInto<Reference>> TryFrom<T> for StringMap where
T::Error: Into<Box<Error>>,
[src]
T::Error: Into<Box<Error>>,