[][src]Struct stdweb::web::StringMap

pub struct StringMap(_);

Used by the dataset HTML attribute to represent data for custom attributes added to elements.

(JavaScript docs)

Methods

impl StringMap[src]

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

Returns a value corresponding to the key.

pub fn insert(&self, key: &str, value: &str) -> Result<(), TODO>[src]

Inserts a key-value pair into the map.

pub fn remove(&self, key: &str)[src]

Removes a key from the map.

pub fn contains_key(&self, key: &str) -> bool[src]

Returns true if the map contains a value for the specified key.

Trait Implementations

impl JsSerialize for StringMap[src]

impl TryFrom<StringMap> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for StringMap[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for StringMap[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for StringMap[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for StringMap[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for StringMap[src]

impl ReferenceType for StringMap[src]

impl AsRef<Reference> for StringMap[src]

impl From<StringMap> for Reference[src]

impl Clone for StringMap[src]

impl Eq for StringMap[src]

impl PartialEq<StringMap> for StringMap[src]

impl Debug for StringMap[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]