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>
[src]
Returns a value corresponding to the key.
fn insert(&self, key: &str, value: &str)
[src]
Inserts a key-value pair into the map.
fn remove(&self, key: &str)
[src]
Removes a key from the map.
fn contains_key(&self, key: &str) -> bool
[src]
Returns true if the map contains a value for the specified key.
Trait Implementations
impl Debug for StringMap
[src]
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter.
impl Clone for StringMap
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for StringMap
[src]
impl<R: TryInto<Reference>> TryFrom<R> for StringMap where
<R as TryInto<Reference>>::Error: Into<Box<Error>>,
[src]
<R as TryInto<Reference>>::Error: Into<Box<Error>>,