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