web_sys/features/
gen_GpuSupportedFeatures.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 = GPUSupportedFeatures , typescript_type = "GPUSupportedFeatures")]
9    #[derive(Debug, Clone, PartialEq, Eq)]
10    #[doc = "The `GpuSupportedFeatures` class."]
11    #[doc = ""]
12    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures)"]
13    #[doc = ""]
14    #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"]
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 GpuSupportedFeatures;
19    #[cfg(web_sys_unstable_apis)]
20    # [wasm_bindgen (structural , method , getter , js_class = "GPUSupportedFeatures" , js_name = size)]
21    #[doc = "Getter for the `size` field of this object."]
22    #[doc = ""]
23    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/size)"]
24    #[doc = ""]
25    #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"]
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 size(this: &GpuSupportedFeatures) -> u32;
30    #[cfg(web_sys_unstable_apis)]
31    # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = entries)]
32    #[doc = "The `entries()` method."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/entries)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"]
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: &GpuSupportedFeatures) -> ::js_sys::Iterator;
41    #[cfg(web_sys_unstable_apis)]
42    # [wasm_bindgen (catch , method , structural , js_class = "GPUSupportedFeatures" , js_name = forEach)]
43    #[doc = "The `forEach()` method."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/forEach)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"]
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: &GpuSupportedFeatures,
53        callback: &::js_sys::Function,
54    ) -> Result<(), JsValue>;
55    #[cfg(web_sys_unstable_apis)]
56    # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = has)]
57    #[doc = "The `has()` method."]
58    #[doc = ""]
59    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/has)"]
60    #[doc = ""]
61    #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"]
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 has(this: &GpuSupportedFeatures, value: &str) -> bool;
66    #[cfg(web_sys_unstable_apis)]
67    # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = keys)]
68    #[doc = "The `keys()` method."]
69    #[doc = ""]
70    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/keys)"]
71    #[doc = ""]
72    #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"]
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 keys(this: &GpuSupportedFeatures) -> ::js_sys::Iterator;
77    #[cfg(web_sys_unstable_apis)]
78    # [wasm_bindgen (method , structural , js_class = "GPUSupportedFeatures" , js_name = values)]
79    #[doc = "The `values()` method."]
80    #[doc = ""]
81    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSupportedFeatures/values)"]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `GpuSupportedFeatures`*"]
84    #[doc = ""]
85    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
87    pub fn values(this: &GpuSupportedFeatures) -> ::js_sys::Iterator;
88}