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