web_sys/features/
gen_XrInputSourceArray.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRInputSourceArray , typescript_type = "XRInputSourceArray")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `XrInputSourceArray` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
15    #[doc = ""]
16    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18    pub type XrInputSourceArray;
19    #[cfg(web_sys_unstable_apis)]
20    # [wasm_bindgen (structural , method , getter , js_class = "XRInputSourceArray" , js_name = length)]
21    #[doc = "Getter for the `length` field of this object."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/length)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
26    #[doc = ""]
27    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
29    pub fn length(this: &XrInputSourceArray) -> u32;
30    #[cfg(web_sys_unstable_apis)]
31    # [wasm_bindgen (method , structural , js_class = "XRInputSourceArray" , js_name = entries)]
32    #[doc = "The `entries()` method."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/entries)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
37    #[doc = ""]
38    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
40    pub fn entries(this: &XrInputSourceArray) -> ::js_sys::Iterator;
41    #[cfg(web_sys_unstable_apis)]
42    # [wasm_bindgen (catch , method , structural , js_class = "XRInputSourceArray" , js_name = forEach)]
43    #[doc = "The `forEach()` method."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/forEach)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
48    #[doc = ""]
49    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    pub fn for_each(
52        this: &XrInputSourceArray,
53        callback: &::js_sys::Function,
54    ) -> Result<(), JsValue>;
55    #[cfg(web_sys_unstable_apis)]
56    # [wasm_bindgen (method , structural , js_class = "XRInputSourceArray" , js_name = keys)]
57    #[doc = "The `keys()` method."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/keys)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
62    #[doc = ""]
63    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
64    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
65    pub fn keys(this: &XrInputSourceArray) -> ::js_sys::Iterator;
66    #[cfg(web_sys_unstable_apis)]
67    # [wasm_bindgen (method , structural , js_class = "XRInputSourceArray" , js_name = values)]
68    #[doc = "The `values()` method."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSourceArray/values)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `XrInputSourceArray`*"]
73    #[doc = ""]
74    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
75    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
76    pub fn values(this: &XrInputSourceArray) -> ::js_sys::Iterator;
77    #[cfg(web_sys_unstable_apis)]
78    #[cfg(feature = "XrInputSource")]
79    #[wasm_bindgen(method, structural, js_class = "XRInputSourceArray", indexing_getter)]
80    #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
81    #[doc = ""]
82    #[doc = ""]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrInputSourceArray`*"]
85    #[doc = ""]
86    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
87    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
88    pub fn get(this: &XrInputSourceArray, index: u32) -> Option<XrInputSource>;
89}