web_sys/features/
gen_DomStringMap.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "::js_sys::Object",
9 js_name = "DOMStringMap",
10 typescript_type = "DOMStringMap"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `DomStringMap` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringMap)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
18 pub type DomStringMap;
19 #[wasm_bindgen(method, js_class = "DOMStringMap", indexing_getter)]
20 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
21 #[doc = ""]
22 #[doc = ""]
23 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
24 pub fn get(this: &DomStringMap, name: &str) -> Option<::alloc::string::String>;
25 #[wasm_bindgen(catch, method, js_class = "DOMStringMap", indexing_setter)]
26 #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."]
27 #[doc = ""]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
30 pub fn set(this: &DomStringMap, name: &str, value: &str) -> Result<(), JsValue>;
31 #[wasm_bindgen(method, js_class = "DOMStringMap", indexing_deleter)]
32 #[doc = "Indexing deleter. As in the literal Javascript `delete this[key]`."]
33 #[doc = ""]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"]
36 pub fn delete(this: &DomStringMap, name: &str);
37}