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