web_sys/features/
gen_WgslLanguageFeatures.rs1#![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 = WGSLLanguageFeatures , typescript_type = "WGSLLanguageFeatures")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `WgslLanguageFeatures` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
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 WgslLanguageFeatures;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (structural , method , getter , js_class = "WGSLLanguageFeatures" , 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/WGSLLanguageFeatures/size)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
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: &WgslLanguageFeatures) -> u32;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = entries)]
32 #[doc = "The `entries()` method."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/entries)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
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: &WgslLanguageFeatures) -> ::js_sys::Iterator;
41 #[cfg(web_sys_unstable_apis)]
42 # [wasm_bindgen (catch , method , structural , js_class = "WGSLLanguageFeatures" , js_name = forEach)]
43 #[doc = "The `forEach()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/forEach)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
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: &WgslLanguageFeatures,
53 callback: &::js_sys::Function,
54 ) -> Result<(), JsValue>;
55 #[cfg(web_sys_unstable_apis)]
56 # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = has)]
57 #[doc = "The `has()` method."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/has)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
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: &WgslLanguageFeatures, value: &str) -> bool;
66 #[cfg(web_sys_unstable_apis)]
67 # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = keys)]
68 #[doc = "The `keys()` method."]
69 #[doc = ""]
70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/keys)"]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
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: &WgslLanguageFeatures) -> ::js_sys::Iterator;
77 #[cfg(web_sys_unstable_apis)]
78 # [wasm_bindgen (method , structural , js_class = "WGSLLanguageFeatures" , js_name = values)]
79 #[doc = "The `values()` method."]
80 #[doc = ""]
81 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/values)"]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
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: &WgslLanguageFeatures) -> ::js_sys::Iterator;
88}