[−][src]Struct stdweb::web::StringMap
Used by the dataset
HTML attribute to represent data for custom attributes added to elements.
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.
fn try_from(value: StringMap) -> Result<Self, Self::Error>
[src]
impl TryFrom<Reference> for StringMap
[src]
type 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]
type 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]
type 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]
type 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]
fn instance_of(reference: &Reference) -> bool
[src]
impl ReferenceType for StringMap
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
impl Eq for StringMap
[src]
impl Clone for StringMap
[src]
fn 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 AsRef<Reference> for StringMap
[src]
impl From<StringMap> for Reference
[src]
impl Debug for StringMap
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
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]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,