summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:42 +0000
commit837b550238aa671a591ccf282dddeab29cadb206 (patch)
tree914b6b8862bace72bd3245ca184d374b08d8a672 /vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs
parentAdding debian version 1.70.0+dfsg2-1. (diff)
downloadrustc-837b550238aa671a591ccf282dddeab29cadb206.tar.xz
rustc-837b550238aa671a591ccf282dddeab29cadb206.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs')
-rw-r--r--vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs137
1 files changed, 137 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs b/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs
new file mode 100644
index 000000000..2dca06380
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_HtmlOptionsCollection.rs
@@ -0,0 +1,137 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = HtmlCollection , extends = :: js_sys :: Object , js_name = HTMLOptionsCollection , typescript_type = "HTMLOptionsCollection")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `HtmlOptionsCollection` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"]
+ pub type HtmlOptionsCollection;
+ # [wasm_bindgen (structural , method , getter , js_class = "HTMLOptionsCollection" , 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/HTMLOptionsCollection/length)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"]
+ pub fn length(this: &HtmlOptionsCollection) -> u32;
+ # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionsCollection" , js_name = length)]
+ #[doc = "Setter for the `length` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"]
+ pub fn set_length(this: &HtmlOptionsCollection, value: u32);
+ # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex)]
+ #[doc = "Getter for the `selectedIndex` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"]
+ pub fn selected_index(this: &HtmlOptionsCollection) -> Result<i32, JsValue>;
+ # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex)]
+ #[doc = "Setter for the `selectedIndex` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"]
+ pub fn set_selected_index(this: &HtmlOptionsCollection, value: i32) -> Result<(), JsValue>;
+ #[cfg(feature = "HtmlOptionElement")]
+ # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)]
+ #[doc = "The `add()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"]
+ pub fn add_with_html_option_element(
+ this: &HtmlOptionsCollection,
+ element: &HtmlOptionElement,
+ ) -> Result<(), JsValue>;
+ #[cfg(feature = "HtmlOptGroupElement")]
+ # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)]
+ #[doc = "The `add()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlOptionsCollection`*"]
+ pub fn add_with_html_opt_group_element(
+ this: &HtmlOptionsCollection,
+ element: &HtmlOptGroupElement,
+ ) -> Result<(), JsValue>;
+ #[cfg(all(feature = "HtmlElement", feature = "HtmlOptionElement",))]
+ # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)]
+ #[doc = "The `add()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `HtmlOptionElement`, `HtmlOptionsCollection`*"]
+ pub fn add_with_html_option_element_and_opt_html_element(
+ this: &HtmlOptionsCollection,
+ element: &HtmlOptionElement,
+ before: Option<&HtmlElement>,
+ ) -> Result<(), JsValue>;
+ #[cfg(all(feature = "HtmlElement", feature = "HtmlOptGroupElement",))]
+ # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)]
+ #[doc = "The `add()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `HtmlOptGroupElement`, `HtmlOptionsCollection`*"]
+ pub fn add_with_html_opt_group_element_and_opt_html_element(
+ this: &HtmlOptionsCollection,
+ element: &HtmlOptGroupElement,
+ before: Option<&HtmlElement>,
+ ) -> Result<(), JsValue>;
+ #[cfg(feature = "HtmlOptionElement")]
+ # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)]
+ #[doc = "The `add()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"]
+ pub fn add_with_html_option_element_and_opt_i32(
+ this: &HtmlOptionsCollection,
+ element: &HtmlOptionElement,
+ before: Option<i32>,
+ ) -> Result<(), JsValue>;
+ #[cfg(feature = "HtmlOptGroupElement")]
+ # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add)]
+ #[doc = "The `add()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlOptionsCollection`*"]
+ pub fn add_with_html_opt_group_element_and_opt_i32(
+ this: &HtmlOptionsCollection,
+ element: &HtmlOptGroupElement,
+ before: Option<i32>,
+ ) -> Result<(), JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = remove)]
+ #[doc = "The `remove()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/remove)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"]
+ pub fn remove(this: &HtmlOptionsCollection, index: i32) -> Result<(), JsValue>;
+ #[cfg(feature = "HtmlOptionElement")]
+ #[wasm_bindgen(
+ catch,
+ method,
+ structural,
+ js_class = "HTMLOptionsCollection",
+ indexing_setter
+ )]
+ #[doc = "Indexing setter."]
+ #[doc = ""]
+ #[doc = ""]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"]
+ pub fn set(
+ this: &HtmlOptionsCollection,
+ index: u32,
+ option: Option<&HtmlOptionElement>,
+ ) -> Result<(), JsValue>;
+}