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