1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = DOMTokenList , typescript_type = "DOMTokenList")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `DomTokenList` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
14 pub type DomTokenList;
15 # [wasm_bindgen (structural , method , getter , js_class = "DOMTokenList" , js_name = length)]
16 #[doc = "Getter for the `length` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
21 pub fn length(this: &DomTokenList) -> u32;
22 # [wasm_bindgen (structural , method , getter , js_class = "DOMTokenList" , js_name = value)]
23 #[doc = "Getter for the `value` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
28 pub fn value(this: &DomTokenList) -> ::alloc::string::String;
29 # [wasm_bindgen (structural , method , setter , js_class = "DOMTokenList" , js_name = value)]
30 #[doc = "Setter for the `value` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
35 pub fn set_value(this: &DomTokenList, value: &str);
36 # [wasm_bindgen (catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = add)]
37 #[doc = "The `add()` method."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
42 pub fn add(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>;
43 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
44 #[doc = "The `add()` method."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
49 pub fn add_0(this: &DomTokenList) -> Result<(), JsValue>;
50 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
51 #[doc = "The `add()` method."]
52 #[doc = ""]
53 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
54 #[doc = ""]
55 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
56 pub fn add_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>;
57 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
58 #[doc = "The `add()` method."]
59 #[doc = ""]
60 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
63 pub fn add_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>;
64 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
65 #[doc = "The `add()` method."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
70 pub fn add_3(
71 this: &DomTokenList,
72 tokens_1: &str,
73 tokens_2: &str,
74 tokens_3: &str,
75 ) -> Result<(), JsValue>;
76 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
77 #[doc = "The `add()` method."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
82 pub fn add_4(
83 this: &DomTokenList,
84 tokens_1: &str,
85 tokens_2: &str,
86 tokens_3: &str,
87 tokens_4: &str,
88 ) -> Result<(), JsValue>;
89 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
90 #[doc = "The `add()` method."]
91 #[doc = ""]
92 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
93 #[doc = ""]
94 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
95 pub fn add_5(
96 this: &DomTokenList,
97 tokens_1: &str,
98 tokens_2: &str,
99 tokens_3: &str,
100 tokens_4: &str,
101 tokens_5: &str,
102 ) -> Result<(), JsValue>;
103 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
104 #[doc = "The `add()` method."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
109 pub fn add_6(
110 this: &DomTokenList,
111 tokens_1: &str,
112 tokens_2: &str,
113 tokens_3: &str,
114 tokens_4: &str,
115 tokens_5: &str,
116 tokens_6: &str,
117 ) -> Result<(), JsValue>;
118 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = add)]
119 #[doc = "The `add()` method."]
120 #[doc = ""]
121 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"]
122 #[doc = ""]
123 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
124 pub fn add_7(
125 this: &DomTokenList,
126 tokens_1: &str,
127 tokens_2: &str,
128 tokens_3: &str,
129 tokens_4: &str,
130 tokens_5: &str,
131 tokens_6: &str,
132 tokens_7: &str,
133 ) -> Result<(), JsValue>;
134 # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = contains)]
135 #[doc = "The `contains()` method."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
140 pub fn contains(this: &DomTokenList, token: &str) -> bool;
141 # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = entries)]
142 #[doc = "The `entries()` method."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/entries)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
147 pub fn entries(this: &DomTokenList) -> ::js_sys::Iterator;
148 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = forEach)]
149 #[doc = "The `forEach()` method."]
150 #[doc = ""]
151 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/forEach)"]
152 #[doc = ""]
153 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
154 pub fn for_each(this: &DomTokenList, callback: &::js_sys::Function) -> Result<(), JsValue>;
155 # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = item)]
156 #[doc = "The `item()` method."]
157 #[doc = ""]
158 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item)"]
159 #[doc = ""]
160 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
161 pub fn item(this: &DomTokenList, index: u32) -> Option<::alloc::string::String>;
162 # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = keys)]
163 #[doc = "The `keys()` method."]
164 #[doc = ""]
165 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/keys)"]
166 #[doc = ""]
167 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
168 pub fn keys(this: &DomTokenList) -> ::js_sys::Iterator;
169 # [wasm_bindgen (catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = remove)]
170 #[doc = "The `remove()` method."]
171 #[doc = ""]
172 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
173 #[doc = ""]
174 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
175 pub fn remove(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>;
176 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
177 #[doc = "The `remove()` method."]
178 #[doc = ""]
179 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
180 #[doc = ""]
181 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
182 pub fn remove_0(this: &DomTokenList) -> Result<(), JsValue>;
183 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
184 #[doc = "The `remove()` method."]
185 #[doc = ""]
186 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
187 #[doc = ""]
188 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
189 pub fn remove_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>;
190 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
191 #[doc = "The `remove()` method."]
192 #[doc = ""]
193 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
196 pub fn remove_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>;
197 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
198 #[doc = "The `remove()` method."]
199 #[doc = ""]
200 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
201 #[doc = ""]
202 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
203 pub fn remove_3(
204 this: &DomTokenList,
205 tokens_1: &str,
206 tokens_2: &str,
207 tokens_3: &str,
208 ) -> Result<(), JsValue>;
209 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
210 #[doc = "The `remove()` method."]
211 #[doc = ""]
212 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
213 #[doc = ""]
214 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
215 pub fn remove_4(
216 this: &DomTokenList,
217 tokens_1: &str,
218 tokens_2: &str,
219 tokens_3: &str,
220 tokens_4: &str,
221 ) -> Result<(), JsValue>;
222 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
223 #[doc = "The `remove()` method."]
224 #[doc = ""]
225 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
226 #[doc = ""]
227 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
228 pub fn remove_5(
229 this: &DomTokenList,
230 tokens_1: &str,
231 tokens_2: &str,
232 tokens_3: &str,
233 tokens_4: &str,
234 tokens_5: &str,
235 ) -> Result<(), JsValue>;
236 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
237 #[doc = "The `remove()` method."]
238 #[doc = ""]
239 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
240 #[doc = ""]
241 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
242 pub fn remove_6(
243 this: &DomTokenList,
244 tokens_1: &str,
245 tokens_2: &str,
246 tokens_3: &str,
247 tokens_4: &str,
248 tokens_5: &str,
249 tokens_6: &str,
250 ) -> Result<(), JsValue>;
251 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = remove)]
252 #[doc = "The `remove()` method."]
253 #[doc = ""]
254 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"]
255 #[doc = ""]
256 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
257 pub fn remove_7(
258 this: &DomTokenList,
259 tokens_1: &str,
260 tokens_2: &str,
261 tokens_3: &str,
262 tokens_4: &str,
263 tokens_5: &str,
264 tokens_6: &str,
265 tokens_7: &str,
266 ) -> Result<(), JsValue>;
267 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = replace)]
268 #[doc = "The `replace()` method."]
269 #[doc = ""]
270 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace)"]
271 #[doc = ""]
272 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
273 pub fn replace(this: &DomTokenList, token: &str, new_token: &str) -> Result<bool, JsValue>;
274 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = supports)]
275 #[doc = "The `supports()` method."]
276 #[doc = ""]
277 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports)"]
278 #[doc = ""]
279 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
280 pub fn supports(this: &DomTokenList, token: &str) -> Result<bool, JsValue>;
281 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = toggle)]
282 #[doc = "The `toggle()` method."]
283 #[doc = ""]
284 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"]
285 #[doc = ""]
286 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
287 pub fn toggle(this: &DomTokenList, token: &str) -> Result<bool, JsValue>;
288 # [wasm_bindgen (catch , method , structural , js_class = "DOMTokenList" , js_name = toggle)]
289 #[doc = "The `toggle()` method."]
290 #[doc = ""]
291 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"]
292 #[doc = ""]
293 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
294 pub fn toggle_with_force(
295 this: &DomTokenList,
296 token: &str,
297 force: bool,
298 ) -> Result<bool, JsValue>;
299 # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = values)]
300 #[doc = "The `values()` method."]
301 #[doc = ""]
302 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/values)"]
303 #[doc = ""]
304 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
305 pub fn values(this: &DomTokenList) -> ::js_sys::Iterator;
306 #[wasm_bindgen(method, structural, js_class = "DOMTokenList", indexing_getter)]
307 #[doc = "Indexing getter. As in the literal Javascript `this[key]`."]
308 #[doc = ""]
309 #[doc = ""]
310 #[doc = ""]
311 #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"]
312 pub fn get(this: &DomTokenList, index: u32) -> Option<::alloc::string::String>;
313}