web_sys/features/
gen_ViewTransitionTypeSet.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 = "ViewTransitionTypeSet",
11 typescript_type = "ViewTransitionTypeSet"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `ViewTransitionTypeSet` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
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 ViewTransitionTypeSet;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "ViewTransitionTypeSet", 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/ViewTransitionTypeSet/size)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
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: &ViewTransitionTypeSet) -> u32;
34 #[cfg(web_sys_unstable_apis)]
35 #[wasm_bindgen(method, js_class = "ViewTransitionTypeSet")]
36 #[doc = "The `add()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/add)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
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 add(this: &ViewTransitionTypeSet, value: &str) -> ViewTransitionTypeSet;
45 #[cfg(web_sys_unstable_apis)]
46 #[wasm_bindgen(method, js_class = "ViewTransitionTypeSet")]
47 #[doc = "The `clear()` method."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/clear)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
52 #[doc = ""]
53 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55 pub fn clear(this: &ViewTransitionTypeSet);
56 #[cfg(web_sys_unstable_apis)]
57 #[wasm_bindgen(method, js_class = "ViewTransitionTypeSet")]
58 #[doc = "The `delete()` method."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/delete)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
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 delete(this: &ViewTransitionTypeSet, value: &str) -> bool;
67 #[cfg(web_sys_unstable_apis)]
68 #[wasm_bindgen(catch, method, js_class = "ViewTransitionTypeSet", js_name = "forEach")]
69 #[doc = "The `forEach()` method."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/forEach)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
74 #[doc = ""]
75 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
76 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
77 pub fn for_each(
78 this: &ViewTransitionTypeSet,
79 callback: &::js_sys::Function<fn(::js_sys::JsString) -> ::js_sys::Undefined>,
80 ) -> Result<(), JsValue>;
81 #[cfg(web_sys_unstable_apis)]
82 #[wasm_bindgen(method, js_class = "ViewTransitionTypeSet")]
83 #[doc = "The `has()` method."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/has)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
88 #[doc = ""]
89 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
90 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
91 pub fn has(this: &ViewTransitionTypeSet, value: &str) -> bool;
92 #[cfg(web_sys_unstable_apis)]
93 #[wasm_bindgen(method, js_class = "ViewTransitionTypeSet")]
94 #[doc = "The `entries()` method."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/entries)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
99 #[doc = ""]
100 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
101 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
102 pub fn entries(
103 this: &ViewTransitionTypeSet,
104 ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(::js_sys::JsString, ::js_sys::JsString)>>;
105 #[cfg(web_sys_unstable_apis)]
106 #[wasm_bindgen(method, js_class = "ViewTransitionTypeSet")]
107 #[doc = "The `keys()` method."]
108 #[doc = ""]
109 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/keys)"]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
112 #[doc = ""]
113 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
114 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
115 pub fn keys(this: &ViewTransitionTypeSet) -> ::js_sys::Iterator<::js_sys::JsString>;
116 #[cfg(web_sys_unstable_apis)]
117 #[wasm_bindgen(method, js_class = "ViewTransitionTypeSet")]
118 #[doc = "The `values()` method."]
119 #[doc = ""]
120 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransitionTypeSet/values)"]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `ViewTransitionTypeSet`*"]
123 #[doc = ""]
124 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
125 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
126 pub fn values(this: &ViewTransitionTypeSet) -> ::js_sys::Iterator<::js_sys::JsString>;
127}