1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = HTMLAllCollection , typescript_type = "HTMLAllCollection")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `HtmlAllCollection` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"]
13     pub type HtmlAllCollection;
14     # [wasm_bindgen (structural , method , getter , js_class = "HTMLAllCollection" , 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/HTMLAllCollection/length)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"]
length(this: &HtmlAllCollection) -> u3220     pub fn length(this: &HtmlAllCollection) -> u32;
21     #[cfg(feature = "Node")]
22     # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = item)]
23     #[doc = "The `item()` method."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"]
item_with_index(this: &HtmlAllCollection, index: u32) -> Option<Node>28     pub fn item_with_index(this: &HtmlAllCollection, index: u32) -> Option<Node>;
29     # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = item)]
30     #[doc = "The `item()` method."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"]
item_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>35     pub fn item_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>;
36     # [wasm_bindgen (method , structural , js_class = "HTMLAllCollection" , js_name = namedItem)]
37     #[doc = "The `namedItem()` method."]
38     #[doc = ""]
39     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/namedItem)"]
40     #[doc = ""]
41     #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"]
named_item(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>42     pub fn named_item(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>;
43     #[cfg(feature = "Node")]
44     #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)]
45     #[doc = "Indexing getter."]
46     #[doc = ""]
47     #[doc = ""]
48     #[doc = ""]
49     #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"]
get_with_index(this: &HtmlAllCollection, index: u32) -> Option<Node>50     pub fn get_with_index(this: &HtmlAllCollection, index: u32) -> Option<Node>;
51     #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)]
52     #[doc = "Indexing getter."]
53     #[doc = ""]
54     #[doc = ""]
55     #[doc = ""]
56     #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"]
get_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>57     pub fn get_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>;
58 }
59