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(
9 extends = "::js_sys::Object",
10 js_name = "WGSLLanguageFeatures",
11 typescript_type = "WGSLLanguageFeatures"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `WgslLanguageFeatures` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type WgslLanguageFeatures;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "WGSLLanguageFeatures", js_name = "size")]
25 #[doc = "Getter for the `size` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/size)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
30 #[doc = ""]
31 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 pub fn size(this: &WgslLanguageFeatures) -> u32;
34 #[cfg(web_sys_unstable_apis)]
35 #[wasm_bindgen(catch, method, js_class = "WGSLLanguageFeatures", js_name = "forEach")]
36 #[doc = "The `forEach()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/forEach)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
41 #[doc = ""]
42 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 pub fn for_each(
45 this: &WgslLanguageFeatures,
46 callback: &::js_sys::Function<fn(::js_sys::JsString) -> ::js_sys::Undefined>,
47 ) -> Result<(), JsValue>;
48 #[cfg(web_sys_unstable_apis)]
49 #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")]
50 #[doc = "The `has()` method."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/has)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
55 #[doc = ""]
56 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
57 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
58 pub fn has(this: &WgslLanguageFeatures, value: &str) -> bool;
59 #[cfg(web_sys_unstable_apis)]
60 #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")]
61 #[doc = "The `entries()` method."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/entries)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
66 #[doc = ""]
67 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 pub fn entries(
70 this: &WgslLanguageFeatures,
71 ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(::js_sys::JsString, ::js_sys::JsString)>>;
72 #[cfg(web_sys_unstable_apis)]
73 #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")]
74 #[doc = "The `keys()` method."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/keys)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
79 #[doc = ""]
80 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
82 pub fn keys(this: &WgslLanguageFeatures) -> ::js_sys::Iterator<::js_sys::JsString>;
83 #[cfg(web_sys_unstable_apis)]
84 #[wasm_bindgen(method, js_class = "WGSLLanguageFeatures")]
85 #[doc = "The `values()` method."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WGSLLanguageFeatures/values)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `WgslLanguageFeatures`*"]
90 #[doc = ""]
91 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
92 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
93 pub fn values(this: &WgslLanguageFeatures) -> ::js_sys::Iterator<::js_sys::JsString>;
94}