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