Skip to main content

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