maxcountryman_web_sys/features/
gen_DomStringList.rs

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