web_sys/features/
gen_DomStringList.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMStringList , typescript_type = "DOMStringList")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DomStringList` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
14 pub type DomStringList;
15 # [wasm_bindgen (structural , method , getter , js_class = "DOMStringList" , js_name = length)]
16 #[doc = "Getter for the `length` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/length)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
21 pub fn length(this: &DomStringList) -> u32;
22 # [wasm_bindgen (method , structural , js_class = "DOMStringList" , js_name = contains)]
23 #[doc = "The `contains()` method."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/contains)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
28 pub fn contains(this: &DomStringList, string: &str) -> bool;
29 # [wasm_bindgen (method , structural , js_class = "DOMStringList" , js_name = item)]
30 #[doc = "The `item()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/item)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
35 pub fn item(this: &DomStringList, index: u32) -> Option<::alloc::string::String>;
36 #[wasm_bindgen(method, structural, js_class = "DOMStringList", indexing_getter)]
37 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
38 #[doc = ""]
39 #[doc = ""]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
42 pub fn get(this: &DomStringList, index: u32) -> Option<::alloc::string::String>;
43}