[−][src]Struct stdweb::web::StringMap
Used by the dataset HTML attribute to represent data for custom attributes added to elements.
Methods
impl StringMap[src]
impl StringMappub 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 JsSerialize for StringMapimpl TryFrom<StringMap> for Reference[src]
impl TryFrom<StringMap> for Referencetype Error = Void
The type returned in the event of a conversion error.
fn try_from(value: StringMap) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Reference> for StringMap[src]
impl TryFrom<Reference> for StringMaptype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Reference> for StringMap[src]
impl<'_r> TryFrom<&'_r Reference> for StringMaptype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Value> for StringMap[src]
impl TryFrom<Value> for StringMaptype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error> | [src] |
impl<'_r> TryFrom<&'_r Value> for StringMap[src]
impl<'_r> TryFrom<&'_r Value> for StringMaptype Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error> | [src] |
impl InstanceOf for StringMap[src]
impl InstanceOf for StringMapfn instance_of(reference: &Reference) -> bool | [src] |
impl ReferenceType for StringMap[src]
impl ReferenceType for StringMapunsafe fn from_reference_unchecked(reference: Reference) -> Self | [src] |
impl From<StringMap> for Reference[src]
impl From<StringMap> for Referenceimpl Eq for StringMap[src]
impl Eq for StringMapimpl AsRef<Reference> for StringMap[src]
impl AsRef<Reference> for StringMapimpl Clone for StringMap[src]
impl Clone for StringMapfn clone(&self) -> StringMap | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source. Read more
impl PartialEq<StringMap> for StringMap[src]
impl PartialEq<StringMap> for StringMapimpl Debug for StringMap[src]
impl Debug for StringMapAuto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)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> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>,