Skip to main content

web_sys/features/
gen_DomStringList.rs

1#![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 = "DOMStringList",
10        typescript_type = "DOMStringList"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `DomStringList` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
18    pub type DomStringList;
19    #[wasm_bindgen(method, getter, js_class = "DOMStringList", js_name = "length")]
20    #[doc = "Getter for the `length` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/length)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
25    pub fn length(this: &DomStringList) -> u32;
26    #[wasm_bindgen(method, js_class = "DOMStringList")]
27    #[doc = "The `contains()` method."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/contains)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
32    pub fn contains(this: &DomStringList, string: &str) -> bool;
33    #[wasm_bindgen(method, js_class = "DOMStringList")]
34    #[doc = "The `item()` method."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/item)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
39    pub fn item(this: &DomStringList, index: u32) -> Option<::alloc::string::String>;
40    #[wasm_bindgen(method, js_class = "DOMStringList", indexing_getter)]
41    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
42    #[doc = ""]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"]
45    pub fn get(this: &DomStringList, index: u32) -> Option<::alloc::string::String>;
46}