Skip to main content

web_sys/features/
gen_GpuCompilationMessage.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(
9        extends = "::js_sys::Object",
10        js_name = "GPUCompilationMessage",
11        typescript_type = "GPUCompilationMessage"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `GpuCompilationMessage` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
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 GpuCompilationMessage;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(
25        method,
26        getter,
27        js_class = "GPUCompilationMessage",
28        js_name = "message"
29    )]
30    #[doc = "Getter for the `message` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/message)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
35    #[doc = ""]
36    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
37    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
38    pub fn message(this: &GpuCompilationMessage) -> ::alloc::string::String;
39    #[cfg(web_sys_unstable_apis)]
40    #[cfg(feature = "GpuCompilationMessageType")]
41    #[wasm_bindgen(method, getter, js_class = "GPUCompilationMessage", js_name = "type")]
42    #[doc = "Getter for the `type` field of this object."]
43    #[doc = ""]
44    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/type)"]
45    #[doc = ""]
46    #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`, `GpuCompilationMessageType`*"]
47    #[doc = ""]
48    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
49    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
50    pub fn type_(this: &GpuCompilationMessage) -> GpuCompilationMessageType;
51    #[cfg(web_sys_unstable_apis)]
52    #[wasm_bindgen(
53        method,
54        getter,
55        js_class = "GPUCompilationMessage",
56        js_name = "lineNum"
57    )]
58    #[doc = "Getter for the `lineNum` field of this object."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/lineNum)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
63    #[doc = ""]
64    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
66    pub fn line_num(this: &GpuCompilationMessage) -> f64;
67    #[cfg(web_sys_unstable_apis)]
68    #[wasm_bindgen(
69        method,
70        getter,
71        js_class = "GPUCompilationMessage",
72        js_name = "linePos"
73    )]
74    #[doc = "Getter for the `linePos` field of this object."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/linePos)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
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 line_pos(this: &GpuCompilationMessage) -> f64;
83    #[cfg(web_sys_unstable_apis)]
84    #[wasm_bindgen(method, getter, js_class = "GPUCompilationMessage", js_name = "offset")]
85    #[doc = "Getter for the `offset` field of this object."]
86    #[doc = ""]
87    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/offset)"]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
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 offset(this: &GpuCompilationMessage) -> f64;
94    #[cfg(web_sys_unstable_apis)]
95    #[wasm_bindgen(method, getter, js_class = "GPUCompilationMessage", js_name = "length")]
96    #[doc = "Getter for the `length` field of this object."]
97    #[doc = ""]
98    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCompilationMessage/length)"]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `GpuCompilationMessage`*"]
101    #[doc = ""]
102    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
103    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
104    pub fn length(this: &GpuCompilationMessage) -> f64;
105}