diff --git a/.cargo/config.toml b/.cargo/config.toml index 59337eed45f..11543229379 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,4 +1,4 @@ -[target.wasm32-unknown-unknown] +[target.'cfg(target_arch = "wasm32")'] runner = 'cargo run -p wasm-bindgen-cli --bin wasm-bindgen-test-runner --' [target.'cfg(all())'] diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20b261e6eaa..d18aac7b127 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -92,6 +92,37 @@ jobs: - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -p js-sys -- -D warnings - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -p web-sys -- -D warnings + # Run `cargo clippy` over crates that support `no_std` + clippy_no_std: + name: Clippy `no_std` + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: rustup update --no-self-update stable && rustup default stable + - run: rustup target add wasm32-unknown-unknown + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p wasm-bindgen -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p js-sys -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p web-sys -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p wasm-bindgen-futures -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p wasm-bindgen-test -- -D warnings + + # Run `cargo clippy` over crates that support `no_std` with `target_feature = "atomics"` support. + clippy_no_std_atomics: + name: Clippy `no_std` with `atomics` + runs-on: ubuntu-latest + env: + CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUSTFLAGS: -Ctarget-feature=+atomics,+bulk-memory + steps: + - uses: actions/checkout@v4 + - run: rustup default nightly-2024-07-06 + - run: rustup target add wasm32-unknown-unknown + - run: rustup component add clippy rust-src + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p wasm-bindgen -Zbuild-std=core,alloc -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p js-sys -Zbuild-std=core,alloc -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p web-sys -Zbuild-std=core,alloc -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p wasm-bindgen-futures --features once_cell/critical-section -Zbuild-std=core,alloc -- -D warnings + - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -p wasm-bindgen-test --features once_cell/critical-section -Zbuild-std=core,alloc -- -D warnings + # Run `cargo clippy` over the project clippy_project: name: Clippy (project) @@ -100,7 +131,6 @@ jobs: - uses: actions/checkout@v4 - run: rustup update --no-self-update stable && rustup default stable - run: rustup target add wasm32-unknown-unknown - - run: cargo clippy --no-deps --no-default-features --target wasm32-unknown-unknown -- -D warnings - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -- -D warnings - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown --tests -- -D warnings - run: for i in examples/*/; do cd "$i"; cargo +stable clippy --no-deps --all-features --target wasm32-unknown-unknown -- -D warnings || exit 1; cd ../..; done diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e85f5ddf6a..88340abe3df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,15 @@ * Added WASM ABI support for `u128` and `i128` [#4222](https://github.com/rustwasm/wasm-bindgen/pull/4222) +* Added support for the `wasm32v1-none` target. + [#4277](https://github.com/rustwasm/wasm-bindgen/pull/4277) + +* Added support for `no_std` to `js-sys`, `web-sys`, `wasm-bindgen-futures` and `wasm-bindgen-test`. + [#4277](https://github.com/rustwasm/wasm-bindgen/pull/4277) + +* Added support for `no_std` to `link_to!`, `static_string` (via `thread_local_v2`) and `throw`. + [#4277](https://github.com/rustwasm/wasm-bindgen/pull/4277) + ### Changed * String enums now generate private TypeScript types but only if used. @@ -46,6 +55,9 @@ * `wasm-bindgen-test-runner` now tries to restart the WebDriver on failure, instead of spending its timeout period trying to connect to a non-existing WebDriver. [#4267](https://github.com/rustwasm/wasm-bindgen/pull/4267) +* Deprecated `#[wasm_bindgen(thread_local)]` in favor of `#[wasm_bindgen(thread_local_v2)]`, which creates a `wasm_bindgen::JsThreadLocal`. It is similar to `std::thread::LocalKey` but supports `no_std`. + [#4277](https://github.com/rustwasm/wasm-bindgen/pull/4277) + ### Fixed * Fixed methods with `self: &Self` consuming the object. diff --git a/Cargo.toml b/Cargo.toml index e5d52b98ce4..153a7306e31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ default = ["spans", "std"] enable-interning = ["std"] serde-serialize = ["serde", "serde_json", "std"] spans = ["wasm-bindgen-macro/spans"] -std = [] +std = ["wasm-bindgen-macro/std", "once_cell/std"] # Whether or not the `#[wasm_bindgen]` macro is strict and generates an error on # all unused attributes @@ -42,10 +42,15 @@ xxx_debug_only_print_generated_code = ["wasm-bindgen-macro/xxx_debug_only_print_ [dependencies] cfg-if = "1.0.0" -once_cell = "1.12" +once_cell = { version = "1.12", default-features = false } serde = { version = "1.0", optional = true } serde_json = { version = "1.0", optional = true } -wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.95" } +wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.95", default-features = false } + +[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"), target_feature = "atomics"))'.dependencies] +wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.95", default-features = false, features = [ + "atomics", +] } [dev-dependencies] wasm-bindgen-test = { path = 'crates/test' } diff --git a/crates/backend/Cargo.toml b/crates/backend/Cargo.toml index 3b8d2d39020..4ff518442d9 100644 --- a/crates/backend/Cargo.toml +++ b/crates/backend/Cargo.toml @@ -14,8 +14,11 @@ rust-version = "1.57" version = "0.2.95" [features] +atomics = [] +default = ["std"] extra-traits = ["syn/extra-traits"] spans = [] +std = [] [dependencies] bumpalo = "3.0.0" diff --git a/crates/backend/src/ast.rs b/crates/backend/src/ast.rs index 0991dac66cf..0507f055306 100644 --- a/crates/backend/src/ast.rs +++ b/crates/backend/src/ast.rs @@ -275,8 +275,17 @@ pub struct ImportStatic { pub js_name: String, /// Path to wasm_bindgen pub wasm_bindgen: Path, - /// [`true`] if using the new `thread_local` representation. - pub thread_local: bool, + /// Version of `thread_local`, if any. + pub thread_local: Option, +} + +/// Which version of the `thread_local` attribute is enabled. +#[derive(Copy, Clone, Debug, PartialEq, Eq)] +pub enum ThreadLocal { + /// V1. + V1, + /// V2. + V2, } /// The type of a static string being imported @@ -297,6 +306,8 @@ pub struct ImportString { pub js_sys: Path, /// The string to export. pub string: String, + /// Version of `thread_local`. + pub thread_local: ThreadLocal, } /// The metadata for a type being imported diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index 0cb52f3472c..13349eec53b 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -163,7 +163,7 @@ impl TryToTokens for ast::Program { let prefix_json_bytes = syn::LitByteStr::new(&prefix_json_bytes, Span::call_site()); (quote! { - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] #[automatically_derived] const _: () = { use #wasm_bindgen::__rt::{flat_len, flat_byte_slices}; @@ -201,9 +201,10 @@ impl TryToTokens for ast::LinkToModule { #program #extern_fn - static __VAL: #wasm_bindgen::__rt::Lazy = #wasm_bindgen::__rt::Lazy::new(|| unsafe { - <#wasm_bindgen::__rt::alloc::string::String as #wasm_bindgen::convert::FromWasmAbi>::from_abi(#name().join()) - }); + static __VAL: #wasm_bindgen::__rt::once_cell::sync::Lazy<#wasm_bindgen::__rt::alloc::string::String> = + #wasm_bindgen::__rt::once_cell::sync::Lazy::new(|| unsafe { + <#wasm_bindgen::__rt::alloc::string::String as #wasm_bindgen::convert::FromWasmAbi>::from_abi(#name().join()) + }); #wasm_bindgen::__rt::alloc::string::String::clone(&__VAL) } @@ -275,12 +276,12 @@ impl ToTokens for ast::Struct { let ptr = #wasm_bindgen::convert::IntoWasmAbi::into_abi(value); #[link(wasm_import_module = "__wbindgen_placeholder__")] - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] extern "C" { fn #new_fn(ptr: u32) -> u32; } - #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] + #[cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))] unsafe fn #new_fn(_: u32) -> u32 { panic!("cannot convert to JsValue outside of the Wasm target") } @@ -292,7 +293,7 @@ impl ToTokens for ast::Struct { } } - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] #[automatically_derived] const _: () = { #[no_mangle] @@ -381,12 +382,12 @@ impl ToTokens for ast::Struct { let idx = #wasm_bindgen::convert::IntoWasmAbi::into_abi(&value); #[link(wasm_import_module = "__wbindgen_placeholder__")] - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] extern "C" { fn #unwrap_fn(ptr: u32) -> u32; } - #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] + #[cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))] unsafe fn #unwrap_fn(_: u32) -> u32 { panic!("cannot convert from JsValue outside of the Wasm target") } @@ -493,7 +494,7 @@ impl ToTokens for ast::StructField { (quote! { #[automatically_derived] const _: () = { - #[cfg_attr(all(target_arch = "wasm32", target_os = "unknown"), no_mangle)] + #[cfg_attr(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")), no_mangle)] #[doc(hidden)] #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))] pub unsafe extern "C" fn #getter(js: u32) @@ -532,7 +533,7 @@ impl ToTokens for ast::StructField { let (args, names) = splat(wasm_bindgen, &Ident::new("val", rust_name.span()), &abi); (quote! { - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] #[automatically_derived] const _: () = { #[no_mangle] @@ -791,7 +792,7 @@ impl TryToTokens for ast::Export { const _: () = { #(#attrs)* #[cfg_attr( - all(target_arch = "wasm32", target_os = "unknown"), + all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")), export_name = #export_name, )] #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))] @@ -1066,11 +1067,11 @@ impl ToTokens for ast::ImportType { impl JsCast for #rust_name { fn instanceof(val: &JsValue) -> bool { #[link(wasm_import_module = "__wbindgen_placeholder__")] - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] extern "C" { fn #instanceof_shim(val: u32) -> u32; } - #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] + #[cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))] unsafe fn #instanceof_shim(_: u32) -> u32 { panic!("cannot check instanceof on non-wasm targets"); } @@ -1675,7 +1676,7 @@ impl ToTokens for ast::ImportStatic { fn to_tokens(&self, into: &mut TokenStream) { let ty = &self.ty; - if self.thread_local { + if let Some(thread_local) = self.thread_local { thread_local_import( &self.vis, &self.rust_name, @@ -1683,6 +1684,7 @@ impl ToTokens for ast::ImportStatic { ty, ty, &self.shim, + thread_local, ) .to_tokens(into) } else { @@ -1695,7 +1697,7 @@ impl ToTokens for ast::ImportStatic { into.extend(quote! { #[automatically_derived] - #[deprecated = "use with `#[wasm_bindgen(thread_local)]` instead"] + #[deprecated = "use with `#[wasm_bindgen(thread_local_v2)]` instead"] }); into.extend( quote_spanned! { name.span() => #vis static #name: #wasm_bindgen::JsStatic<#ty> = { @@ -1735,6 +1737,7 @@ impl ToTokens for ast::ImportString { &actual_ty, &self.ty, &self.shim, + self.thread_local, ) .to_tokens(into); } @@ -1747,15 +1750,52 @@ fn thread_local_import( actual_ty: &syn::Type, ty: &syn::Type, shim_name: &Ident, + thread_local: ast::ThreadLocal, ) -> TokenStream { let init = static_init(wasm_bindgen, ty, shim_name); - quote! { - thread_local! { - #[automatically_derived] - #vis static #name: #actual_ty = { - #init + match thread_local { + ast::ThreadLocal::V1 => quote! { + thread_local! { + #[automatically_derived] + #[deprecated = "use with `#[wasm_bindgen(thread_local_v2)]` instead"] + #vis static #name: #actual_ty = { + #init + }; + } + }, + ast::ThreadLocal::V2 => { + #[cfg(feature = "std")] + let inner = quote! { + thread_local!(static _VAL: #actual_ty = init();); + #wasm_bindgen::JsThreadLocal { + __inner: &_VAL, + } + }; + #[cfg(all(not(feature = "std"), not(feature = "atomics")))] + let inner = quote! { + static _VAL: #wasm_bindgen::__rt::LazyCell<#actual_ty> = #wasm_bindgen::__rt::LazyCell::new(init); + #wasm_bindgen::JsThreadLocal { + __inner: &_VAL, + } + }; + #[cfg(all(not(feature = "std"), feature = "atomics"))] + let inner = quote! { + #[thread_local] + static _VAL: #wasm_bindgen::__rt::LazyCell<#actual_ty> = #wasm_bindgen::__rt::LazyCell::new(init); + #wasm_bindgen::JsThreadLocal { + __inner: || unsafe { #wasm_bindgen::__rt::LazyCell::force(&_VAL) as *const #actual_ty }, + } }; + + quote! { + #vis static #name: #wasm_bindgen::JsThreadLocal<#actual_ty> = { + fn init() -> #actual_ty { + #init + } + #inner + }; + } } } } @@ -1766,12 +1806,12 @@ fn static_init(wasm_bindgen: &syn::Path, ty: &syn::Type, shim_name: &Ident) -> T }; quote! { #[link(wasm_import_module = "__wbindgen_placeholder__")] - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] extern "C" { fn #shim_name() -> #abi_ret; } - #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] + #[cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))] unsafe fn #shim_name() -> #abi_ret { panic!("cannot access imported statics on non-wasm targets") } @@ -1818,7 +1858,7 @@ impl<'a, T: ToTokens> ToTokens for Descriptor<'a, T> { let attrs = &self.attrs; let wasm_bindgen = &self.wasm_bindgen; (quote! { - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] #[automatically_derived] const _: () = { #(#attrs)* @@ -1845,14 +1885,14 @@ fn extern_fn( abi_ret: TokenStream, ) -> TokenStream { quote! { - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] #(#attrs)* #[link(wasm_import_module = "__wbindgen_placeholder__")] extern "C" { fn #import_name(#(#abi_arguments),*) -> #abi_ret; } - #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] + #[cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))] unsafe fn #import_name(#(#abi_arguments),*) -> #abi_ret { #( drop(#abi_argument_names); diff --git a/crates/cli/tests/reference/anyref-import-catch.wat b/crates/cli/tests/reference/anyref-import-catch.wat index c0bd0b51b81..d5c8b26e7c0 100644 --- a/crates/cli/tests/reference/anyref-import-catch.wat +++ b/crates/cli/tests/reference/anyref-import-catch.wat @@ -4,9 +4,9 @@ (type (;2;) (func (result i32 i32))) (type (;3;) (func (param i32))) (import "./reference_test_bg.js" "__wbindgen_init_externref_table" (func (;0;) (type 0))) - (func $__externref_table_dealloc (;1;) (type 3) (param i32)) - (func $__externref_table_alloc (;2;) (type 1) (result i32)) - (func $__wbindgen_exn_store (;3;) (type 3) (param i32)) + (func $__wbindgen_exn_store (;1;) (type 3) (param i32)) + (func $__externref_table_dealloc (;2;) (type 3) (param i32)) + (func $__externref_table_alloc (;3;) (type 1) (result i32)) (func $"exported multivalue shim" (;4;) (type 2) (result i32 i32)) (table (;0;) 128 externref) (memory (;0;) 17) diff --git a/crates/cli/tests/reference/web-sys.wat b/crates/cli/tests/reference/web-sys.wat index 06265263889..564a4afd324 100644 --- a/crates/cli/tests/reference/web-sys.wat +++ b/crates/cli/tests/reference/web-sys.wat @@ -5,9 +5,9 @@ (type (;3;) (func (param i32 i32 i32 i32) (result i32))) (func $__wbindgen_realloc (;0;) (type 3) (param i32 i32 i32 i32) (result i32)) (func $__wbindgen_malloc (;1;) (type 2) (param i32 i32) (result i32)) - (func $get_url (;2;) (type 0) (result i32)) - (func $get_media_source (;3;) (type 0) (result i32)) - (func $__wbindgen_exn_store (;4;) (type 1) (param i32)) + (func $__wbindgen_exn_store (;2;) (type 1) (param i32)) + (func $get_url (;3;) (type 0) (result i32)) + (func $get_media_source (;4;) (type 0) (result i32)) (memory (;0;) 17) (export "memory" (memory 0)) (export "get_url" (func $get_url)) diff --git a/crates/futures/Cargo.toml b/crates/futures/Cargo.toml index 15abdd740f1..f162cdf8f30 100644 --- a/crates/futures/Cargo.toml +++ b/crates/futures/Cargo.toml @@ -19,13 +19,17 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] cfg-if = "1.0.0" futures-core = { version = '0.3.8', default-features = false, optional = true } -js-sys = { path = "../js-sys", version = '0.3.72' } -wasm-bindgen = { path = "../..", version = '0.2.95' } +js-sys = { path = "../js-sys", version = '0.3.72', default-features = false } +once_cell = { version = "1.12", default-features = false } +wasm-bindgen = { path = "../..", version = '0.2.95', default-features = false } [features] +default = ["std"] futures-core-03-stream = ['futures-core'] +std = ["wasm-bindgen/std", "js-sys/std", "web-sys/std", "once_cell/std"] [target.'cfg(target_feature = "atomics")'.dependencies.web-sys] +default-features = false features = ["MessageEvent", "Worker"] path = "../web-sys" version = "0.3.24" diff --git a/crates/futures/src/lib.rs b/crates/futures/src/lib.rs index 2c1eb3db6ee..6b6ba72e86e 100644 --- a/crates/futures/src/lib.rs +++ b/crates/futures/src/lib.rs @@ -30,17 +30,25 @@ //! systems and make sure that Rust/JavaScript can work together with //! asynchronous and I/O work. +#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(target_feature = "atomics", feature(stdarch_wasm_atomic_wait))] +#![cfg_attr( + all(not(feature = "std"), target_feature = "atomics"), + feature(thread_local) +)] #![deny(missing_docs)] #![cfg_attr(docsrs, feature(doc_cfg))] +extern crate alloc; + +use alloc::boxed::Box; +use alloc::rc::Rc; +use core::cell::RefCell; +use core::fmt; +use core::future::Future; +use core::pin::Pin; +use core::task::{Context, Poll, Waker}; use js_sys::Promise; -use std::cell::RefCell; -use std::fmt; -use std::future::Future; -use std::pin::Pin; -use std::rc::Rc; -use std::task::{Context, Poll, Waker}; use wasm_bindgen::prelude::*; mod queue; diff --git a/crates/futures/src/queue.rs b/crates/futures/src/queue.rs index 2e17eb5ecf1..fe438cb1929 100644 --- a/crates/futures/src/queue.rs +++ b/crates/futures/src/queue.rs @@ -1,7 +1,7 @@ +use alloc::collections::VecDeque; +use alloc::rc::Rc; +use core::cell::{Cell, RefCell}; use js_sys::Promise; -use std::cell::{Cell, RefCell}; -use std::collections::VecDeque; -use std::rc::Rc; use wasm_bindgen::prelude::*; #[wasm_bindgen] @@ -71,6 +71,7 @@ impl Queue { } } // Append a task to the currently running queue, or schedule it + #[cfg(not(target_feature = "atomics"))] pub(crate) fn push_task(&self, task: Rc) { // It would make sense to run this task on the same tick. For now, we // make the simplifying choice of always scheduling tasks for a future tick. @@ -105,8 +106,23 @@ impl Queue { has_queue_microtask, } } -} -thread_local! { - pub(crate) static QUEUE: Queue = Queue::new(); + #[cfg(feature = "std")] + pub(crate) fn with(f: impl FnOnce(&Self) -> R) -> R { + thread_local! { + static QUEUE: Queue = Queue::new(); + } + + QUEUE.with(f) + } + + #[cfg(not(feature = "std"))] + pub(crate) fn with(f: impl FnOnce(&Self) -> R) -> R { + use wasm_bindgen::__rt::LazyCell; + + #[cfg_attr(target_feature = "atomics", thread_local)] + static QUEUE: LazyCell = LazyCell::new(Queue::new); + + f(&QUEUE) + } } diff --git a/crates/futures/src/task/multithread.rs b/crates/futures/src/task/multithread.rs index 2f00fad81a5..e66de91fd3c 100644 --- a/crates/futures/src/task/multithread.rs +++ b/crates/futures/src/task/multithread.rs @@ -1,12 +1,15 @@ -use std::cell::RefCell; -use std::future::Future; -use std::mem::ManuallyDrop; -use std::pin::Pin; -use std::rc::Rc; -use std::sync::atomic::AtomicI32; -use std::sync::atomic::Ordering::SeqCst; -use std::sync::Arc; -use std::task::{Context, Poll, RawWaker, RawWakerVTable, Waker}; +#![allow(clippy::incompatible_msrv)] + +use alloc::boxed::Box; +use alloc::rc::Rc; +use alloc::sync::Arc; +use core::cell::RefCell; +use core::future::Future; +use core::mem::ManuallyDrop; +use core::pin::Pin; +use core::sync::atomic::AtomicI32; +use core::sync::atomic::Ordering::SeqCst; +use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker}; use wasm_bindgen::prelude::*; const SLEEPING: i32 = 0; @@ -101,7 +104,7 @@ impl Task { *this.inner.borrow_mut() = Some(Inner { future, closure }); // Queue up the Future's work to happen on the next microtask tick. - crate::queue::QUEUE.with(move |queue| queue.schedule_task(this)); + crate::queue::Queue::with(move |queue| queue.schedule_task(this)); } pub(crate) fn run(&self) { diff --git a/crates/futures/src/task/singlethread.rs b/crates/futures/src/task/singlethread.rs index ad52f552400..733a0407510 100644 --- a/crates/futures/src/task/singlethread.rs +++ b/crates/futures/src/task/singlethread.rs @@ -1,9 +1,10 @@ -use std::cell::{Cell, RefCell}; -use std::future::Future; -use std::mem::ManuallyDrop; -use std::pin::Pin; -use std::rc::Rc; -use std::task::{Context, RawWaker, RawWakerVTable, Waker}; +use alloc::boxed::Box; +use alloc::rc::Rc; +use core::cell::{Cell, RefCell}; +use core::future::Future; +use core::mem::ManuallyDrop; +use core::pin::Pin; +use core::task::{Context, RawWaker, RawWakerVTable, Waker}; struct Inner { future: Pin + 'static>>, @@ -32,11 +33,11 @@ impl Task { *this.inner.borrow_mut() = Some(Inner { future, waker }); - crate::queue::QUEUE.with(|queue| queue.schedule_task(this)); + crate::queue::Queue::with(|queue| queue.schedule_task(this)); } fn force_wake(this: Rc) { - crate::queue::QUEUE.with(|queue| { + crate::queue::Queue::with(|queue| { queue.push_task(this); }); } diff --git a/crates/futures/src/task/wait_async_polyfill.rs b/crates/futures/src/task/wait_async_polyfill.rs index ff0a8f5aa19..757b5d56106 100644 --- a/crates/futures/src/task/wait_async_polyfill.rs +++ b/crates/futures/src/task/wait_async_polyfill.rs @@ -3,6 +3,8 @@ //! and ported to Rust //! +#![allow(clippy::incompatible_msrv)] + /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. @@ -36,18 +38,37 @@ * when possible. The worker communicates with its parent using postMessage. */ +use alloc::vec; +use alloc::vec::Vec; +use core::cell::RefCell; +use core::sync::atomic::AtomicI32; use js_sys::{Array, Promise}; -use std::cell::RefCell; -use std::sync::atomic::AtomicI32; use wasm_bindgen::prelude::*; use web_sys::{MessageEvent, Worker}; -thread_local! { - static HELPERS: RefCell> = RefCell::new(vec![]); +struct Helpers; + +impl Helpers { + #[cfg(feature = "std")] + pub(crate) fn with(f: impl FnOnce(&RefCell>) -> R) -> R { + thread_local! { + static HELPERS: RefCell> = RefCell::new(vec![]); + } + + HELPERS.with(f) + } + + #[cfg(not(feature = "std"))] + pub(crate) fn with(f: impl FnOnce(&RefCell>) -> R) -> R { + #[thread_local] + static HELPERS: RefCell> = RefCell::new(vec![]); + + f(&HELPERS) + } } fn alloc_helper() -> Worker { - HELPERS.with(|helpers| { + Helpers::with(|helpers| { if let Some(helper) = helpers.borrow_mut().pop() { return helper; } @@ -58,7 +79,7 @@ fn alloc_helper() -> Worker { } fn free_helper(helper: Worker) { - HELPERS.with(move |helpers| { + Helpers::with(move |helpers| { let mut helpers = helpers.borrow_mut(); helpers.push(helper.clone()); helpers.truncate(10); // random arbitrary limit chosen here diff --git a/crates/js-sys/Cargo.toml b/crates/js-sys/Cargo.toml index 6c7e68885e7..b34977b50c5 100644 --- a/crates/js-sys/Cargo.toml +++ b/crates/js-sys/Cargo.toml @@ -20,8 +20,12 @@ version = "0.3.72" doctest = false test = false +[features] +default = ["std"] +std = ["wasm-bindgen/std"] + [dependencies] -wasm-bindgen = { path = "../..", version = "0.2.95" } +wasm-bindgen = { path = "../..", version = "0.2.95", default-features = false } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] wasm-bindgen-futures = { path = '../futures' } diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index 1833cd5d77a..20abcbef379 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -17,16 +17,25 @@ //! bindings. #![doc(html_root_url = "https://docs.rs/js-sys/0.2")] - +#![cfg_attr(not(feature = "std"), no_std)] +#![cfg_attr( + all(not(feature = "std"), target_feature = "atomics"), + feature(thread_local) +)] + +extern crate alloc; + +use alloc::string::String; +use alloc::vec::Vec; +use core::cmp::Ordering; +use core::convert::{self, Infallible, TryFrom}; +use core::f64; +use core::fmt; +use core::iter::{self, Product, Sum}; +use core::mem; use core::ops::{Add, BitAnd, BitOr, BitXor, Div, Mul, Neg, Not, Rem, Shl, Shr, Sub}; -use std::cmp::Ordering; -use std::convert::{self, Infallible, TryFrom}; -use std::f64; -use std::fmt; -use std::iter::{self, Product, Sum}; -use std::mem; -use std::str; -use std::str::FromStr; +use core::str; +use core::str::FromStr; pub use wasm_bindgen; use wasm_bindgen::prelude::*; @@ -636,11 +645,11 @@ extern "C" { /// Iterator returned by `Array::into_iter` #[derive(Debug, Clone)] pub struct ArrayIntoIter { - range: std::ops::Range, + range: core::ops::Range, array: Array, } -impl std::iter::Iterator for ArrayIntoIter { +impl core::iter::Iterator for ArrayIntoIter { type Item = JsValue; fn next(&mut self) -> Option { @@ -676,7 +685,7 @@ impl std::iter::Iterator for ArrayIntoIter { } } -impl std::iter::DoubleEndedIterator for ArrayIntoIter { +impl core::iter::DoubleEndedIterator for ArrayIntoIter { fn next_back(&mut self) -> Option { let index = self.range.next_back()?; Some(self.array.get(index)) @@ -687,18 +696,18 @@ impl std::iter::DoubleEndedIterator for ArrayIntoIter { } } -impl std::iter::FusedIterator for ArrayIntoIter {} +impl core::iter::FusedIterator for ArrayIntoIter {} -impl std::iter::ExactSizeIterator for ArrayIntoIter {} +impl core::iter::ExactSizeIterator for ArrayIntoIter {} /// Iterator returned by `Array::iter` #[derive(Debug, Clone)] pub struct ArrayIter<'a> { - range: std::ops::Range, + range: core::ops::Range, array: &'a Array, } -impl<'a> std::iter::Iterator for ArrayIter<'a> { +impl<'a> core::iter::Iterator for ArrayIter<'a> { type Item = JsValue; fn next(&mut self) -> Option { @@ -734,7 +743,7 @@ impl<'a> std::iter::Iterator for ArrayIter<'a> { } } -impl<'a> std::iter::DoubleEndedIterator for ArrayIter<'a> { +impl<'a> core::iter::DoubleEndedIterator for ArrayIter<'a> { fn next_back(&mut self) -> Option { let index = self.range.next_back()?; Some(self.array.get(index)) @@ -745,9 +754,9 @@ impl<'a> std::iter::DoubleEndedIterator for ArrayIter<'a> { } } -impl<'a> std::iter::FusedIterator for ArrayIter<'a> {} +impl<'a> core::iter::FusedIterator for ArrayIter<'a> {} -impl<'a> std::iter::ExactSizeIterator for ArrayIter<'a> {} +impl<'a> core::iter::ExactSizeIterator for ArrayIter<'a> {} impl Array { /// Returns an iterator over the values of the JS array. @@ -772,7 +781,7 @@ impl Array { } } -impl std::iter::IntoIterator for Array { +impl core::iter::IntoIterator for Array { type Item = JsValue; type IntoIter = ArrayIntoIter; @@ -785,7 +794,7 @@ impl std::iter::IntoIterator for Array { } // TODO pre-initialize the Array with the correct length using TrustedLen -impl std::iter::FromIterator for Array +impl core::iter::FromIterator for Array where A: AsRef, { @@ -799,7 +808,7 @@ where } } -impl std::iter::Extend for Array +impl core::iter::Extend for Array where A: AsRef, { @@ -2302,7 +2311,7 @@ impl<'a> IntoIterator for &'a Iterator { } } -impl<'a> std::iter::Iterator for Iter<'a> { +impl<'a> core::iter::Iterator for Iter<'a> { type Item = Result; fn next(&mut self) -> Option { @@ -2322,7 +2331,7 @@ impl IntoIterator for Iterator { } } -impl std::iter::Iterator for IntoIter { +impl core::iter::Iterator for IntoIter { type Item = Result; fn next(&mut self) -> Option { @@ -2836,6 +2845,7 @@ impl fmt::Display for TryFromIntError { } } +#[cfg(feature = "std")] impl std::error::Error for TryFromIntError {} macro_rules! number_try_from { @@ -5340,7 +5350,7 @@ impl JsString { /// /// [docs]: https://rustwasm.github.io/docs/wasm-bindgen/reference/types/str.html pub fn is_valid_utf16(&self) -> bool { - std::char::decode_utf16(self.iter()).all(|i| i.is_ok()) + core::char::decode_utf16(self.iter()).all(|i| i.is_ok()) } /// Returns an iterator over the `u16` character codes that make up this JS @@ -5375,7 +5385,7 @@ impl JsString { // https://github.com/rustwasm/wasm-bindgen/issues/1362 let cp = self.code_point_at(0).as_f64().unwrap_throw() as u32; - let c = std::char::from_u32(cp)?; + let c = core::char::from_u32(cp)?; if c.len_utf16() as u32 == len { Some(c) @@ -6021,9 +6031,20 @@ extern "C" { /// This allows access to the global properties and global names by accessing /// the `Object` returned. pub fn global() -> Object { - thread_local!(static GLOBAL: Object = get_global_object()); + #[cfg(feature = "std")] + { + thread_local!(static GLOBAL: Object = get_global_object()); + return GLOBAL.with(|g| g.clone()); + } + #[cfg(not(feature = "std"))] + { + use wasm_bindgen::__rt::LazyCell; + + #[cfg_attr(target_feature = "atomics", thread_local)] + static GLOBAL: LazyCell = LazyCell::new(get_global_object); - return GLOBAL.with(|g| g.clone()); + return GLOBAL.clone(); + } fn get_global_object() -> Object { // This is a bit wonky, but we're basically using `#[wasm_bindgen]` @@ -6230,7 +6251,7 @@ macro_rules! arrays { /// This function returns a new typed array which is a view into /// wasm's memory. This view does not copy the underlying data. /// - /// # Unsafety + /// # Safety /// /// Views into WebAssembly memory are only valid so long as the /// backing buffer isn't resized in JS. Once this function is called @@ -6259,7 +6280,7 @@ macro_rules! arrays { /// This function returns a new typed array which is a view into /// wasm's memory. This view does not copy the underlying data. /// - /// # Unsafety + /// # Safety /// /// Views into WebAssembly memory are only valid so long as the /// backing buffer isn't resized in JS. Once this function is called @@ -6286,7 +6307,7 @@ macro_rules! arrays { /// array into this Wasm module's own linear memory, initializing /// the memory destination provided. /// - /// # Unsafety + /// # Safety /// /// This function requires `dst` to point to a buffer /// large enough to fit this array's contents. @@ -6310,7 +6331,7 @@ macro_rules! arrays { /// This function will panic if this typed array's length is /// different than the length of the provided `dst` array. pub fn copy_to(&self, dst: &mut [$ty]) { - assert_eq!(self.length() as usize, dst.len()); + core::assert_eq!(self.length() as usize, dst.len()); unsafe { self.raw_copy_to_ptr(dst.as_mut_ptr()); } } @@ -6325,7 +6346,7 @@ macro_rules! arrays { /// This function will panic if this typed array's length is /// different than the length of the provided `src` array. pub fn copy_from(&self, src: &[$ty]) { - assert_eq!(self.length() as usize, src.len()); + core::assert_eq!(self.length() as usize, src.len()); // This is safe because the `set` function copies from its TypedArray argument unsafe { self.set(&$name::view(src), 0) } } diff --git a/crates/js-sys/tests/wasm/Function.rs b/crates/js-sys/tests/wasm/Function.rs index f0f27dca123..e9e2ad3acc1 100644 --- a/crates/js-sys/tests/wasm/Function.rs +++ b/crates/js-sys/tests/wasm/Function.rs @@ -5,13 +5,13 @@ use wasm_bindgen_test::*; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(thread_local, js_name = max, js_namespace = Math)] + #[wasm_bindgen(thread_local_v2, js_name = max, js_namespace = Math)] static MAX: Function; type ArrayPrototype; #[wasm_bindgen(method, getter, structural)] pub fn push(this: &ArrayPrototype) -> Function; - #[wasm_bindgen(thread_local, js_name = prototype, js_namespace = Array)] + #[wasm_bindgen(thread_local_v2, js_name = prototype, js_namespace = Array)] static ARRAY_PROTOTYPE2: ArrayPrototype; } diff --git a/crates/js-sys/tests/wasm/Object.rs b/crates/js-sys/tests/wasm/Object.rs index b97c31d0fbf..460fe0f77ce 100644 --- a/crates/js-sys/tests/wasm/Object.rs +++ b/crates/js-sys/tests/wasm/Object.rs @@ -9,9 +9,9 @@ extern "C" { #[wasm_bindgen(method, setter, structural)] fn set_foo(this: &Foo42, val: JsValue); - #[wasm_bindgen(thread_local, js_name = prototype, js_namespace = Object)] + #[wasm_bindgen(thread_local_v2, js_name = prototype, js_namespace = Object)] static OBJECT_PROTOTYPE: JsValue; - #[wasm_bindgen(thread_local, js_name = prototype, js_namespace = Array)] + #[wasm_bindgen(thread_local_v2, js_name = prototype, js_namespace = Array)] static ARRAY_PROTOTYPE: JsValue; type DefinePropertyAttrs; @@ -32,9 +32,9 @@ extern "C" { #[wasm_bindgen(constructor)] fn new() -> Foo; - #[wasm_bindgen(thread_local, js_name = prototype, js_namespace = Foo)] + #[wasm_bindgen(thread_local_v2, js_name = prototype, js_namespace = Foo)] static FOO_PROTOTYPE: Object; - #[wasm_bindgen(thread_local, js_name = prototype, js_namespace = Bar)] + #[wasm_bindgen(thread_local_v2, js_name = prototype, js_namespace = Bar)] static BAR_PROTOTYPE: Object; } diff --git a/crates/macro-support/Cargo.toml b/crates/macro-support/Cargo.toml index 5df475b0e7c..ba169d4cb92 100644 --- a/crates/macro-support/Cargo.toml +++ b/crates/macro-support/Cargo.toml @@ -14,13 +14,16 @@ rust-version = "1.57" version = "0.2.95" [features] +atomics = ["wasm-bindgen-backend/atomics"] +default = ["std"] extra-traits = ["syn/extra-traits"] spans = ["wasm-bindgen-backend/spans"] +std = ["wasm-bindgen-backend/std"] strict-macro = [] [dependencies] proc-macro2 = "1.0" quote = '1.0' syn = { version = '2.0', features = ['visit', 'visit-mut', 'full'] } -wasm-bindgen-backend = { path = "../backend", version = "=0.2.95" } +wasm-bindgen-backend = { path = "../backend", version = "=0.2.95", default-features = false } wasm-bindgen-shared = { path = "../shared", version = "=0.2.95" } diff --git a/crates/macro-support/src/parser.rs b/crates/macro-support/src/parser.rs index a6934c876f8..cca8bffb416 100644 --- a/crates/macro-support/src/parser.rs +++ b/crates/macro-support/src/parser.rs @@ -4,7 +4,7 @@ use std::collections::HashMap; use std::str::Chars; use ast::OperationKind; -use backend::ast; +use backend::ast::{self, ThreadLocal}; use backend::util::{ident_ty, ShortHash}; use backend::Diagnostic; use proc_macro2::{Ident, Span, TokenStream, TokenTree}; @@ -96,6 +96,7 @@ macro_rules! attrgen { (getter_with_clone, GetterWithClone(Span)), (static_string, StaticString(Span)), (thread_local, ThreadLocal(Span)), + (thread_local_v2, ThreadLocalV2(Span)), // For testing purposes only. (assert_no_shim, AssertNoShim(Span)), @@ -236,6 +237,23 @@ impl BindgenAttrs { } } + fn get_thread_local(&self) -> Result, Diagnostic> { + let mut thread_local = self.thread_local_v2().map(|_| ThreadLocal::V2); + + if let Some(span) = self.thread_local() { + if thread_local.is_some() { + return Err(Diagnostic::span_error( + *span, + "`thread_local` can't be used with `thread_local_v2`", + )); + } else { + thread_local = Some(ThreadLocal::V1) + } + } + + Ok(thread_local) + } + attrgen!(methods); } @@ -778,7 +796,7 @@ impl<'a> ConvertToAst<(&ast::Program, BindgenAttrs, &'a Option ConvertToAst<(&ast::Program, BindgenAttrs, &'a Option ConvertToAst<(&ast::Program, BindgenAttrs, &'a Option TokenStream { match wasm_bindgen_macro_support::expand(attr.into(), input.into()) { Ok(tokens) => { diff --git a/crates/macro/ui-tests/invalid-items.rs b/crates/macro/ui-tests/invalid-items.rs index 9ab441c0c0a..96a91f1da7a 100644 --- a/crates/macro/ui-tests/invalid-items.rs +++ b/crates/macro/ui-tests/invalid-items.rs @@ -17,7 +17,7 @@ extern "C" { #[wasm_bindgen(static_string)] static FOO2: JsString; - #[wasm_bindgen(thread_local, static_string)] + #[wasm_bindgen(thread_local_v2, static_string)] static FOO3: JsString; static FOO4: JsString = "test"; diff --git a/crates/macro/ui-tests/invalid-items.stderr b/crates/macro/ui-tests/invalid-items.stderr index f985c96c070..f1600b1fda7 100644 --- a/crates/macro/ui-tests/invalid-items.stderr +++ b/crates/macro/ui-tests/invalid-items.stderr @@ -29,10 +29,10 @@ error: static strings require a string literal | ^^^^^^^^^^^^^ error: static strings require a string literal - --> $DIR/invalid-items.rs:20:34 + --> $DIR/invalid-items.rs:20:37 | -20 | #[wasm_bindgen(thread_local, static_string)] - | ^^^^^^^^^^^^^ +20 | #[wasm_bindgen(thread_local_v2, static_string)] + | ^^^^^^^^^^^^^ error: static strings require `#[wasm_bindgen(static_string)]` --> $DIR/invalid-items.rs:23:5 @@ -40,7 +40,7 @@ error: static strings require `#[wasm_bindgen(static_string)]` 23 | static FOO4: JsString = "test"; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -error: static strings require `#[wasm_bindgen(thread_local)]` +error: static strings require `#[wasm_bindgen(thread_local_v2)]` --> $DIR/invalid-items.rs:26:5 | 26 | static FOO5: JsString = "test"; diff --git a/crates/macro/ui-tests/invalid-static-string.rs b/crates/macro/ui-tests/invalid-static-string.rs index 7b50b1079b0..ddb0a9a62d7 100644 --- a/crates/macro/ui-tests/invalid-static-string.rs +++ b/crates/macro/ui-tests/invalid-static-string.rs @@ -3,7 +3,7 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen] #[rustfmt::skip] extern "C" { - #[wasm_bindgen(thread_local, static_string)] + #[wasm_bindgen(thread_local_v2, static_string)] static FOO: JsValue = "test"; } diff --git a/crates/test-macro/src/lib.rs b/crates/test-macro/src/lib.rs index d0cd7a5fc2c..c18b8ecad8b 100644 --- a/crates/test-macro/src/lib.rs +++ b/crates/test-macro/src/lib.rs @@ -113,7 +113,7 @@ pub fn wasm_bindgen_test( quote! { const _: () = { #[no_mangle] - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] #[cfg_attr(wasm_bindgen_unstable_test_coverage, coverage(off))] pub extern "C" fn #name(cx: &#wasm_bindgen_path::__rt::Context) { let test_name = ::core::concat!(::core::module_path!(), "::", ::core::stringify!(#ident)); @@ -125,7 +125,7 @@ pub fn wasm_bindgen_test( if let Some(path) = attributes.unsupported { tokens.extend( - quote! { #[cfg_attr(not(all(target_arch = "wasm32", target_os = "unknown")), #path)] }, + quote! { #[cfg_attr(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))), #path)] }, ); if let Some(should_panic) = should_panic { @@ -136,7 +136,7 @@ pub fn wasm_bindgen_test( }; tokens.extend( - quote! { #[cfg_attr(not(all(target_arch = "wasm32", target_os = "unknown")), #should_panic)] } + quote! { #[cfg_attr(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))), #should_panic)] } ) } } diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml index f4344ec316c..70c9e2131c8 100644 --- a/crates/test/Cargo.toml +++ b/crates/test/Cargo.toml @@ -9,13 +9,17 @@ repository = "https://github.com/rustwasm/wasm-bindgen" rust-version = "1.57" version = "0.3.45" +[features] +default = ["std"] +std = ["wasm-bindgen/std", "js-sys/std", "wasm-bindgen-futures/std", "once_cell/std", "scoped-tls"] + [dependencies] -console_error_panic_hook = '0.1' gg-alloc = { version = "1.0", optional = true } -js-sys = { path = '../js-sys', version = '0.3.72' } -scoped-tls = "1.0" -wasm-bindgen = { path = '../..', version = '0.2.95' } -wasm-bindgen-futures = { path = '../futures', version = '0.4.45' } +js-sys = { path = '../js-sys', version = '0.3.72', default-features = false } +once_cell = { version = "1.12", default-features = false } +scoped-tls = { version = "1.0", optional = true } +wasm-bindgen = { path = '../..', version = '0.2.95', default-features = false } +wasm-bindgen-futures = { path = '../futures', version = '0.4.45', default-features = false } wasm-bindgen-test-macro = { path = '../test-macro', version = '=0.3.45' } [target.'cfg(all(target_arch = "wasm32", wasm_bindgen_unstable_test_coverage))'.dependencies] diff --git a/crates/test/src/coverage.rs b/crates/test/src/coverage.rs index 855e6a3d1e3..2fe38443ccf 100644 --- a/crates/test/src/coverage.rs +++ b/crates/test/src/coverage.rs @@ -1,3 +1,4 @@ +use alloc::vec::Vec; use wasm_bindgen::prelude::wasm_bindgen; #[cfg(wasm_bindgen_unstable_test_coverage)] diff --git a/crates/test/src/lib.rs b/crates/test/src/lib.rs index b5219fbf76c..f20ca2d82e3 100644 --- a/crates/test/src/lib.rs +++ b/crates/test/src/lib.rs @@ -2,8 +2,13 @@ //! //! More documentation can be found in the README for this crate! +#![cfg_attr(not(feature = "std"), no_std)] #![deny(missing_docs)] +extern crate alloc; + +#[cfg(feature = "std")] +use scoped_tls::scoped_thread_local; pub use wasm_bindgen_test_macro::wasm_bindgen_test; // Custom allocator that only returns pointers in the 2GB-4GB range diff --git a/crates/test/src/rt/browser.rs b/crates/test/src/rt/browser.rs index 49b27725e75..39c4666c6c2 100644 --- a/crates/test/src/rt/browser.rs +++ b/crates/test/src/rt/browser.rs @@ -3,6 +3,8 @@ //! Currently this is quite simple, rendering the same as the console tests in //! node.js. Output here is rendered in a `pre`, however. +use alloc::format; +use alloc::string::String; use js_sys::Error; use wasm_bindgen::prelude::*; @@ -19,7 +21,7 @@ pub struct Browser { #[wasm_bindgen] extern "C" { type HTMLDocument; - #[wasm_bindgen(thread_local, js_name = document)] + #[wasm_bindgen(thread_local_v2, js_name = document)] static DOCUMENT: HTMLDocument; #[wasm_bindgen(method, structural)] fn getElementById(this: &HTMLDocument, id: &str) -> Element; diff --git a/crates/test/src/rt/detect.rs b/crates/test/src/rt/detect.rs index f4cdd988d59..b2b6af2d496 100644 --- a/crates/test/src/rt/detect.rs +++ b/crates/test/src/rt/detect.rs @@ -1,5 +1,6 @@ //! Runtime detection of whether we're in node.js or a browser. +use alloc::string::String; use wasm_bindgen::prelude::*; #[wasm_bindgen] diff --git a/crates/test/src/rt/mod.rs b/crates/test/src/rt/mod.rs index a4343787149..5489e19bf8f 100644 --- a/crates/test/src/rt/mod.rs +++ b/crates/test/src/rt/mod.rs @@ -87,14 +87,18 @@ // Overall this is all somewhat in flux as it's pretty new, and feedback is // always of course welcome! +use alloc::borrow::ToOwned; +use alloc::boxed::Box; +use alloc::format; +use alloc::rc::Rc; +use alloc::string::{String, ToString}; +use alloc::vec::Vec; +use core::cell::{Cell, RefCell}; +use core::fmt::{self, Display}; +use core::future::Future; +use core::pin::Pin; +use core::task::{self, Poll}; use js_sys::{Array, Function, Promise}; -use std::cell::{Cell, RefCell}; -use std::fmt::{self, Display}; -use std::future::Future; -use std::pin::Pin; -use std::rc::Rc; -use std::sync::Once; -use std::task::{self, Poll}; use wasm_bindgen::prelude::*; use wasm_bindgen_futures::future_to_promise; @@ -109,6 +113,8 @@ const CONCURRENCY: usize = 1; pub mod browser; pub mod detect; pub mod node; +#[cfg(not(feature = "std"))] +mod scoped_tls; pub mod worker; /// Runtime test harness support instantiated in JS. @@ -266,21 +272,56 @@ impl Context { /// coordinated, and this will collect output and results for all executed /// tests. #[wasm_bindgen(constructor)] + #[allow(clippy::new_without_default)] pub fn new() -> Context { - static SET_HOOK: Once = Once::new(); + fn panic_handling(mut message: String) { + let should_panic = CURRENT_OUTPUT.with(|output| { + let mut output = output.borrow_mut(); + output.panic.push_str(&message); + output.should_panic + }); + + // See https://github.com/rustwasm/console_error_panic_hook/blob/4dc30a5448ed3ffcfb961b1ad54d000cca881b84/src/lib.rs#L83-L123. + if !should_panic { + #[wasm_bindgen] + extern "C" { + type Error; + + #[wasm_bindgen(constructor)] + fn new() -> Error; + + #[wasm_bindgen(method, getter)] + fn stack(error: &Error) -> String; + } + + message.push_str("\n\nStack:\n\n"); + let e = Error::new(); + let stack = e.stack(); + message.push_str(&stack); + + message.push_str("\n\n"); + + js_console_error(&message); + } + } + #[cfg(feature = "std")] + static SET_HOOK: std::sync::Once = std::sync::Once::new(); + #[cfg(feature = "std")] SET_HOOK.call_once(|| { std::panic::set_hook(Box::new(|panic_info| { - let should_panic = CURRENT_OUTPUT.with(|output| { - let mut output = output.borrow_mut(); - output.panic.push_str(&panic_info.to_string()); - output.should_panic - }); - - if !should_panic { - console_error_panic_hook::hook(panic_info); - } + panic_handling(panic_info.to_string()); })); }); + #[cfg(all( + not(feature = "std"), + target_arch = "wasm32", + any(target_os = "unknown", target_os = "none") + ))] + #[panic_handler] + fn panic_handler(panic_info: &core::panic::PanicInfo<'_>) -> ! { + panic_handling(panic_info.to_string()); + core::arch::wasm32::unreachable(); + } let formatter = match detect::detect() { detect::Runtime::Browser => Box::new(browser::Browser::new()) as Box, @@ -379,7 +420,7 @@ impl Context { } } -scoped_tls::scoped_thread_local!(static CURRENT_OUTPUT: RefCell); +crate::scoped_thread_local!(static CURRENT_OUTPUT: RefCell); /// Handler for `console.log` invocations. /// @@ -452,7 +493,7 @@ impl Termination for () { } } -impl Termination for Result<(), E> { +impl Termination for Result<(), E> { fn into_js_result(self) -> Result<(), JsValue> { self.map_err(|e| JsError::new(&format!("{:?}", e)).into()) } diff --git a/crates/test/src/rt/node.rs b/crates/test/src/rt/node.rs index 67b7646c61f..a505564f1e8 100644 --- a/crates/test/src/rt/node.rs +++ b/crates/test/src/rt/node.rs @@ -3,6 +3,8 @@ //! This currently uses the same output as `libtest`, only reimplemented here //! for node itself. +use alloc::format; +use alloc::string::String; use wasm_bindgen::prelude::*; use super::TestResult; diff --git a/crates/test/src/rt/scoped_tls.rs b/crates/test/src/rt/scoped_tls.rs new file mode 100644 index 00000000000..871a1c541b2 --- /dev/null +++ b/crates/test/src/rt/scoped_tls.rs @@ -0,0 +1,85 @@ +//! See . + +use core::cell::Cell; +use core::marker::PhantomData; + +/// `no_std` polyfill for [`scoped_tls`](https://crates.io/crates/scoped-tls). +#[macro_export] +macro_rules! scoped_thread_local { + (static $name:ident: $ty:ty) => { + static $name: scoped_tls::ScopedKey<$ty> = unsafe { + static FOO: scoped_tls::Wrapper<::core::cell::Cell<*const ()>> = + scoped_tls::Wrapper::new(::core::cell::Cell::new(::core::ptr::null())); + // Safety: nothing else can access FOO since it's hidden in its own scope + scoped_tls::ScopedKey::new(&FOO) + }; + }; +} + +pub(super) struct Wrapper(T); + +impl Wrapper { + pub(super) const fn new(value: T) -> Self { + Self(value) + } +} + +unsafe impl Sync for Wrapper {} + +pub struct ScopedKey { + inner: &'static Wrapper>, + _marker: PhantomData, +} + +unsafe impl Sync for ScopedKey {} + +impl ScopedKey { + #[doc(hidden)] + /// # Safety + /// `inner` must only be accessed through `ScopedKey`'s API + pub const unsafe fn new(inner: &'static Wrapper>) -> Self { + Self { + inner, + _marker: PhantomData, + } + } + + pub fn set(&'static self, t: &T, f: F) -> R + where + F: FnOnce() -> R, + { + struct Reset { + key: &'static Wrapper>, + val: *const (), + } + impl Drop for Reset { + fn drop(&mut self) { + self.key.0.set(self.val); + } + } + let prev = self.inner.0.get(); + self.inner.0.set(t as *const T as *const ()); + let _reset = Reset { + key: self.inner, + val: prev, + }; + f() + } + + pub fn with(&'static self, f: F) -> R + where + F: FnOnce(&T) -> R, + { + let val = self.inner.0.get(); + assert!( + !val.is_null(), + "cannot access a scoped thread local variable without calling `set` first" + ); + unsafe { f(&*(val as *const T)) } + } + + /// Test whether this TLS key has been `set` for the current thread. + pub fn is_set(&'static self) -> bool { + !self.inner.0.get().is_null() + } +} diff --git a/crates/test/src/rt/worker.rs b/crates/test/src/rt/worker.rs index 94bc3c5e892..e9a35242615 100644 --- a/crates/test/src/rt/worker.rs +++ b/crates/test/src/rt/worker.rs @@ -3,6 +3,8 @@ //! Currently this is quite simple, rendering the same as the console tests in //! node.js. Output here is rendered in a `pre`, however. +use alloc::format; +use alloc::string::String; use js_sys::Error; use wasm_bindgen::prelude::*; diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml index f8929d4865b..2f758f4f727 100644 --- a/crates/web-sys/Cargo.toml +++ b/crates/web-sys/Cargo.toml @@ -23,8 +23,8 @@ doctest = false test = false [dependencies] -js-sys = { path = '../js-sys', version = '0.3.72' } -wasm-bindgen = { path = "../..", version = "0.2.95" } +js-sys = { path = '../js-sys', version = '0.3.72', default-features = false } +wasm-bindgen = { path = "../..", version = "0.2.95", default-features = false } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] futures = "0.3" @@ -36,6 +36,8 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(web_sys_unstable_apis)'] } # This list is auto-generated by the wasm-bindgen-webidl program [features] +default = ["std"] +std = ["wasm-bindgen/std", "js-sys/std"] AbortController = [] AbortSignal = ["EventTarget"] AddEventListenerOptions = [] diff --git a/crates/web-sys/src/features/gen_AesCbcParams.rs b/crates/web-sys/src/features/gen_AesCbcParams.rs index d4bcce9127e..28ccbbd17c3 100644 --- a/crates/web-sys/src/features/gen_AesCbcParams.rs +++ b/crates/web-sys/src/features/gen_AesCbcParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &AesCbcParams) -> String; + pub fn get_name(this: &AesCbcParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] diff --git a/crates/web-sys/src/features/gen_AesCtrParams.rs b/crates/web-sys/src/features/gen_AesCtrParams.rs index 6a8e17f3bb7..e45d80ac7ad 100644 --- a/crates/web-sys/src/features/gen_AesCtrParams.rs +++ b/crates/web-sys/src/features/gen_AesCtrParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &AesCtrParams) -> String; + pub fn get_name(this: &AesCtrParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] diff --git a/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs b/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs index e36567f1bc1..a79081cd6b7 100644 --- a/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs +++ b/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &AesDerivedKeyParams) -> String; + pub fn get_name(this: &AesDerivedKeyParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] diff --git a/crates/web-sys/src/features/gen_AesGcmParams.rs b/crates/web-sys/src/features/gen_AesGcmParams.rs index 94918a67623..1496770798f 100644 --- a/crates/web-sys/src/features/gen_AesGcmParams.rs +++ b/crates/web-sys/src/features/gen_AesGcmParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &AesGcmParams) -> String; + pub fn get_name(this: &AesGcmParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] diff --git a/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs b/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs index d202b081c0c..9378c3aeb95 100644 --- a/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &AesKeyAlgorithm) -> String; + pub fn get_name(this: &AesKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] diff --git a/crates/web-sys/src/features/gen_AesKeyGenParams.rs b/crates/web-sys/src/features/gen_AesKeyGenParams.rs index 9b9debe146c..7695ca8c66c 100644 --- a/crates/web-sys/src/features/gen_AesKeyGenParams.rs +++ b/crates/web-sys/src/features/gen_AesKeyGenParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &AesKeyGenParams) -> String; + pub fn get_name(this: &AesKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] diff --git a/crates/web-sys/src/features/gen_Algorithm.rs b/crates/web-sys/src/features/gen_Algorithm.rs index 18164738e02..7ca3479fe6c 100644 --- a/crates/web-sys/src/features/gen_Algorithm.rs +++ b/crates/web-sys/src/features/gen_Algorithm.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &Algorithm) -> String; + pub fn get_name(this: &Algorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] diff --git a/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs b/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs index c04735b5385..ae72c136ea2 100644 --- a/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs +++ b/crates/web-sys/src/features/gen_AllowedBluetoothDevice.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "deviceId")] - pub fn get_device_id(this: &AllowedBluetoothDevice) -> String; + pub fn get_device_id(this: &AllowedBluetoothDevice) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `deviceId` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AllowedUsbDevice.rs b/crates/web-sys/src/features/gen_AllowedUsbDevice.rs index 24c4c4c2db0..c3cdc696b5d 100644 --- a/crates/web-sys/src/features/gen_AllowedUsbDevice.rs +++ b/crates/web-sys/src/features/gen_AllowedUsbDevice.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "serialNumber")] - pub fn get_serial_number(this: &AllowedUsbDevice) -> Option; + pub fn get_serial_number(this: &AllowedUsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `serialNumber` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Animation.rs b/crates/web-sys/src/features/gen_Animation.rs index fa094471737..02df2ead1ec 100644 --- a/crates/web-sys/src/features/gen_Animation.rs +++ b/crates/web-sys/src/features/gen_Animation.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Animation`*"] - pub fn id(this: &Animation) -> String; + pub fn id(this: &Animation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Animation" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AnimationEvent.rs b/crates/web-sys/src/features/gen_AnimationEvent.rs index 78a3d97c2be..199d4297ee1 100644 --- a/crates/web-sys/src/features/gen_AnimationEvent.rs +++ b/crates/web-sys/src/features/gen_AnimationEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] - pub fn animation_name(this: &AnimationEvent) -> String; + pub fn animation_name(this: &AnimationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "AnimationEvent" , js_name = elapsedTime)] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] - pub fn pseudo_element(this: &AnimationEvent) -> String; + pub fn pseudo_element(this: &AnimationEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")] #[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AnimationEventInit.rs b/crates/web-sys/src/features/gen_AnimationEventInit.rs index 23b8e75af68..fcb7f97b1b8 100644 --- a/crates/web-sys/src/features/gen_AnimationEventInit.rs +++ b/crates/web-sys/src/features/gen_AnimationEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "animationName")] - pub fn get_animation_name(this: &AnimationEventInit) -> Option; + pub fn get_animation_name(this: &AnimationEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `animationName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] #[wasm_bindgen(method, getter = "pseudoElement")] - pub fn get_pseudo_element(this: &AnimationEventInit) -> Option; + pub fn get_pseudo_element(this: &AnimationEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] diff --git a/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs b/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs index 5ce5566996d..9778d60dcba 100644 --- a/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs +++ b/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, getter = "property")] - pub fn get_property(this: &AnimationPropertyDetails) -> String; + pub fn get_property(this: &AnimationPropertyDetails) -> ::alloc::string::String; #[doc = "Change the `property` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] #[wasm_bindgen(method, getter = "warning")] - pub fn get_warning(this: &AnimationPropertyDetails) -> Option; + pub fn get_warning(this: &AnimationPropertyDetails) -> Option<::alloc::string::String>; #[doc = "Change the `warning` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] diff --git a/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs b/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs index acb03d52d82..e29fadce259 100644 --- a/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs +++ b/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &AnimationPropertyValueDetails) -> Option; + pub fn get_easing(this: &AnimationPropertyValueDetails) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] #[wasm_bindgen(method, getter = "value")] - pub fn get_value(this: &AnimationPropertyValueDetails) -> Option; + pub fn get_value(this: &AnimationPropertyValueDetails) -> Option<::alloc::string::String>; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] diff --git a/crates/web-sys/src/features/gen_Attr.rs b/crates/web-sys/src/features/gen_Attr.rs index 5ca63056943..752f6d76513 100644 --- a/crates/web-sys/src/features/gen_Attr.rs +++ b/crates/web-sys/src/features/gen_Attr.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/localName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] - pub fn local_name(this: &Attr) -> String; + pub fn local_name(this: &Attr) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , 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/Attr/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] - pub fn value(this: &Attr) -> String; + pub fn value(this: &Attr) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Attr" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -39,21 +39,21 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] - pub fn name(this: &Attr) -> String; + pub fn name(this: &Attr) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = namespaceURI)] #[doc = "Getter for the `namespaceURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] - pub fn namespace_uri(this: &Attr) -> Option; + pub fn namespace_uri(this: &Attr) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = prefix)] #[doc = "Getter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Attr`*"] - pub fn prefix(this: &Attr) -> Option; + pub fn prefix(this: &Attr) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Attr" , js_name = specified)] #[doc = "Getter for the `specified` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AttributeNameValue.rs b/crates/web-sys/src/features/gen_AttributeNameValue.rs index 9d4cff6cd3b..36fd820d932 100644 --- a/crates/web-sys/src/features/gen_AttributeNameValue.rs +++ b/crates/web-sys/src/features/gen_AttributeNameValue.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &AttributeNameValue) -> String; + pub fn get_name(this: &AttributeNameValue) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] #[wasm_bindgen(method, getter = "value")] - pub fn get_value(this: &AttributeNameValue) -> String; + pub fn get_value(this: &AttributeNameValue) -> ::alloc::string::String; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] diff --git a/crates/web-sys/src/features/gen_AudioConfiguration.rs b/crates/web-sys/src/features/gen_AudioConfiguration.rs index decab4a0fef..fa0af991c4a 100644 --- a/crates/web-sys/src/features/gen_AudioConfiguration.rs +++ b/crates/web-sys/src/features/gen_AudioConfiguration.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, getter = "channels")] - pub fn get_channels(this: &AudioConfiguration) -> Option; + pub fn get_channels(this: &AudioConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `channels` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] #[wasm_bindgen(method, getter = "contentType")] - pub fn get_content_type(this: &AudioConfiguration) -> Option; + pub fn get_content_type(this: &AudioConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] diff --git a/crates/web-sys/src/features/gen_AudioDecoderConfig.rs b/crates/web-sys/src/features/gen_AudioDecoderConfig.rs index 7b4c8eddb02..bdf5b716027 100644 --- a/crates/web-sys/src/features/gen_AudioDecoderConfig.rs +++ b/crates/web-sys/src/features/gen_AudioDecoderConfig.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] - pub fn get_codec(this: &AudioDecoderConfig) -> String; + pub fn get_codec(this: &AudioDecoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioEncoderConfig.rs b/crates/web-sys/src/features/gen_AudioEncoderConfig.rs index 4e15edfcb1a..94444878caa 100644 --- a/crates/web-sys/src/features/gen_AudioEncoderConfig.rs +++ b/crates/web-sys/src/features/gen_AudioEncoderConfig.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] - pub fn get_codec(this: &AudioEncoderConfig) -> String; + pub fn get_codec(this: &AudioEncoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AudioTrack.rs b/crates/web-sys/src/features/gen_AudioTrack.rs index 7b04ddd0c66..391abe9ba88 100644 --- a/crates/web-sys/src/features/gen_AudioTrack.rs +++ b/crates/web-sys/src/features/gen_AudioTrack.rs @@ -18,28 +18,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] - pub fn id(this: &AudioTrack) -> String; + pub fn id(this: &AudioTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] - pub fn kind(this: &AudioTrack) -> String; + pub fn kind(this: &AudioTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] - pub fn label(this: &AudioTrack) -> String; + pub fn label(this: &AudioTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] - pub fn language(this: &AudioTrack) -> String; + pub fn language(this: &AudioTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "AudioTrack" , js_name = enabled)] #[doc = "Getter for the `enabled` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs index 6a01870170f..e0a6ad252f6 100644 --- a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs +++ b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs @@ -14,7 +14,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, getter = "appid")] - pub fn get_appid(this: &AuthenticationExtensionsClientInputs) -> Option; + pub fn get_appid( + this: &AuthenticationExtensionsClientInputs, + ) -> Option<::alloc::string::String>; #[doc = "Change the `appid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] @@ -24,7 +26,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] #[wasm_bindgen(method, getter = "appidExclude")] - pub fn get_appid_exclude(this: &AuthenticationExtensionsClientInputs) -> Option; + pub fn get_appid_exclude( + this: &AuthenticationExtensionsClientInputs, + ) -> Option<::alloc::string::String>; #[doc = "Change the `appidExclude` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] diff --git a/crates/web-sys/src/features/gen_AuthenticationExtensionsDevicePublicKeyInputs.rs b/crates/web-sys/src/features/gen_AuthenticationExtensionsDevicePublicKeyInputs.rs index a03cb380b6a..ac5ee5c72da 100644 --- a/crates/web-sys/src/features/gen_AuthenticationExtensionsDevicePublicKeyInputs.rs +++ b/crates/web-sys/src/features/gen_AuthenticationExtensionsDevicePublicKeyInputs.rs @@ -22,7 +22,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] - pub fn get_attestation(this: &AuthenticationExtensionsDevicePublicKeyInputs) -> Option; + pub fn get_attestation( + this: &AuthenticationExtensionsDevicePublicKeyInputs, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AuthenticationExtensionsLargeBlobInputs.rs b/crates/web-sys/src/features/gen_AuthenticationExtensionsLargeBlobInputs.rs index 288681845e5..b08ad745dff 100644 --- a/crates/web-sys/src/features/gen_AuthenticationExtensionsLargeBlobInputs.rs +++ b/crates/web-sys/src/features/gen_AuthenticationExtensionsLargeBlobInputs.rs @@ -24,7 +24,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] #[wasm_bindgen(method, getter = "support")] - pub fn get_support(this: &AuthenticationExtensionsLargeBlobInputs) -> Option; + pub fn get_support( + this: &AuthenticationExtensionsLargeBlobInputs, + ) -> Option<::alloc::string::String>; #[doc = "Change the `support` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsLargeBlobInputs`*"] diff --git a/crates/web-sys/src/features/gen_AuthenticationResponseJson.rs b/crates/web-sys/src/features/gen_AuthenticationResponseJson.rs index 62c2f9c1f02..55d75060c88 100644 --- a/crates/web-sys/src/features/gen_AuthenticationResponseJson.rs +++ b/crates/web-sys/src/features/gen_AuthenticationResponseJson.rs @@ -22,7 +22,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorAttachment")] - pub fn get_authenticator_attachment(this: &AuthenticationResponseJson) -> Option; + pub fn get_authenticator_attachment( + this: &AuthenticationResponseJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorAttachment` field of this object."] #[doc = ""] @@ -65,7 +67,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &AuthenticationResponseJson) -> String; + pub fn get_id(this: &AuthenticationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] @@ -83,7 +85,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rawId")] - pub fn get_raw_id(this: &AuthenticationResponseJson) -> String; + pub fn get_raw_id(this: &AuthenticationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rawId` field of this object."] #[doc = ""] @@ -124,7 +126,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &AuthenticationResponseJson) -> String; + pub fn get_type(this: &AuthenticationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AuthenticatorAssertionResponseJson.rs b/crates/web-sys/src/features/gen_AuthenticatorAssertionResponseJson.rs index d1a87b56980..731de3744c1 100644 --- a/crates/web-sys/src/features/gen_AuthenticatorAssertionResponseJson.rs +++ b/crates/web-sys/src/features/gen_AuthenticatorAssertionResponseJson.rs @@ -22,7 +22,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationObject")] - pub fn get_attestation_object(this: &AuthenticatorAssertionResponseJson) -> Option; + pub fn get_attestation_object( + this: &AuthenticatorAssertionResponseJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationObject` field of this object."] #[doc = ""] @@ -40,7 +42,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorData")] - pub fn get_authenticator_data(this: &AuthenticatorAssertionResponseJson) -> String; + pub fn get_authenticator_data( + this: &AuthenticatorAssertionResponseJson, + ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorData` field of this object."] #[doc = ""] @@ -58,7 +62,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientDataJSON")] - pub fn get_client_data_json(this: &AuthenticatorAssertionResponseJson) -> String; + pub fn get_client_data_json( + this: &AuthenticatorAssertionResponseJson, + ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clientDataJSON` field of this object."] #[doc = ""] @@ -76,7 +82,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "signature")] - pub fn get_signature(this: &AuthenticatorAssertionResponseJson) -> String; + pub fn get_signature(this: &AuthenticatorAssertionResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `signature` field of this object."] #[doc = ""] @@ -94,7 +100,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "userHandle")] - pub fn get_user_handle(this: &AuthenticatorAssertionResponseJson) -> Option; + pub fn get_user_handle( + this: &AuthenticatorAssertionResponseJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `userHandle` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AuthenticatorAttestationResponseJson.rs b/crates/web-sys/src/features/gen_AuthenticatorAttestationResponseJson.rs index e591e05f032..633f699fb39 100644 --- a/crates/web-sys/src/features/gen_AuthenticatorAttestationResponseJson.rs +++ b/crates/web-sys/src/features/gen_AuthenticatorAttestationResponseJson.rs @@ -22,7 +22,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestationObject")] - pub fn get_attestation_object(this: &AuthenticatorAttestationResponseJson) -> String; + pub fn get_attestation_object( + this: &AuthenticatorAttestationResponseJson, + ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestationObject` field of this object."] #[doc = ""] @@ -40,7 +42,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorData")] - pub fn get_authenticator_data(this: &AuthenticatorAttestationResponseJson) -> String; + pub fn get_authenticator_data( + this: &AuthenticatorAttestationResponseJson, + ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorData` field of this object."] #[doc = ""] @@ -58,7 +62,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientDataJSON")] - pub fn get_client_data_json(this: &AuthenticatorAttestationResponseJson) -> String; + pub fn get_client_data_json( + this: &AuthenticatorAttestationResponseJson, + ) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clientDataJSON` field of this object."] #[doc = ""] @@ -76,7 +82,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "publicKey")] - pub fn get_public_key(this: &AuthenticatorAttestationResponseJson) -> Option; + pub fn get_public_key( + this: &AuthenticatorAttestationResponseJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `publicKey` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs b/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs index 26409cbf27d..c3188c86d43 100644 --- a/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs +++ b/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs @@ -41,7 +41,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] #[wasm_bindgen(method, getter = "residentKey")] - pub fn get_resident_key(this: &AuthenticatorSelectionCriteria) -> Option; + pub fn get_resident_key( + this: &AuthenticatorSelectionCriteria, + ) -> Option<::alloc::string::String>; #[doc = "Change the `residentKey` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] diff --git a/crates/web-sys/src/features/gen_AutocompleteInfo.rs b/crates/web-sys/src/features/gen_AutocompleteInfo.rs index a1da9bb5b11..d10e1094aa2 100644 --- a/crates/web-sys/src/features/gen_AutocompleteInfo.rs +++ b/crates/web-sys/src/features/gen_AutocompleteInfo.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "addressType")] - pub fn get_address_type(this: &AutocompleteInfo) -> Option; + pub fn get_address_type(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `addressType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "contactType")] - pub fn get_contact_type(this: &AutocompleteInfo) -> Option; + pub fn get_contact_type(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `contactType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "fieldName")] - pub fn get_field_name(this: &AutocompleteInfo) -> Option; + pub fn get_field_name(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `fieldName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] #[wasm_bindgen(method, getter = "section")] - pub fn get_section(this: &AutocompleteInfo) -> Option; + pub fn get_section(this: &AutocompleteInfo) -> Option<::alloc::string::String>; #[doc = "Change the `section` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] diff --git a/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs b/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs index 8626547052e..57fa7006021 100644 --- a/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs +++ b/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &BaseComputedKeyframe) -> Option; + pub fn get_easing(this: &BaseComputedKeyframe) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] diff --git a/crates/web-sys/src/features/gen_BaseKeyframe.rs b/crates/web-sys/src/features/gen_BaseKeyframe.rs index 1c37af7631c..e7aa2583119 100644 --- a/crates/web-sys/src/features/gen_BaseKeyframe.rs +++ b/crates/web-sys/src/features/gen_BaseKeyframe.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &BaseKeyframe) -> Option; + pub fn get_easing(this: &BaseKeyframe) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] diff --git a/crates/web-sys/src/features/gen_BasicCardResponse.rs b/crates/web-sys/src/features/gen_BasicCardResponse.rs index b5fff5306b0..b97e50d4de9 100644 --- a/crates/web-sys/src/features/gen_BasicCardResponse.rs +++ b/crates/web-sys/src/features/gen_BasicCardResponse.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "cardNumber")] - pub fn get_card_number(this: &BasicCardResponse) -> String; + pub fn get_card_number(this: &BasicCardResponse) -> ::alloc::string::String; #[doc = "Change the `cardNumber` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] @@ -36,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "cardSecurityCode")] - pub fn get_card_security_code(this: &BasicCardResponse) -> Option; + pub fn get_card_security_code(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `cardSecurityCode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "cardholderName")] - pub fn get_cardholder_name(this: &BasicCardResponse) -> Option; + pub fn get_cardholder_name(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `cardholderName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] @@ -56,7 +56,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "expiryMonth")] - pub fn get_expiry_month(this: &BasicCardResponse) -> Option; + pub fn get_expiry_month(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `expiryMonth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] #[wasm_bindgen(method, getter = "expiryYear")] - pub fn get_expiry_year(this: &BasicCardResponse) -> Option; + pub fn get_expiry_year(this: &BasicCardResponse) -> Option<::alloc::string::String>; #[doc = "Change the `expiryYear` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] diff --git a/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs b/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs index c5392a6e8e3..0a8069a20d6 100644 --- a/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs +++ b/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent/returnValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] - pub fn return_value(this: &BeforeUnloadEvent) -> String; + pub fn return_value(this: &BeforeUnloadEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "BeforeUnloadEvent" , js_name = returnValue)] #[doc = "Setter for the `returnValue` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Blob.rs b/crates/web-sys/src/features/gen_Blob.rs index f63dbaadef8..6cad214b381 100644 --- a/crates/web-sys/src/features/gen_Blob.rs +++ b/crates/web-sys/src/features/gen_Blob.rs @@ -25,7 +25,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`*"] - pub fn type_(this: &Blob) -> String; + pub fn type_(this: &Blob) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "Blob")] #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BlobPropertyBag.rs b/crates/web-sys/src/features/gen_BlobPropertyBag.rs index c9f3853f33e..c1e3196c82f 100644 --- a/crates/web-sys/src/features/gen_BlobPropertyBag.rs +++ b/crates/web-sys/src/features/gen_BlobPropertyBag.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &BlobPropertyBag) -> Option; + pub fn get_type(this: &BlobPropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] diff --git a/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs b/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs index 1bb43d7d24e..528dc366590 100644 --- a/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs +++ b/crates/web-sys/src/features/gen_BluetoothAdvertisingEvent.rs @@ -49,7 +49,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn name(this: &BluetoothAdvertisingEvent) -> Option; + pub fn name(this: &BluetoothAdvertisingEvent) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothAdvertisingEvent" , js_name = appearance)] #[doc = "Getter for the `appearance` field of this object."] diff --git a/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs b/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs index 38c8e66dc5c..21605f3214d 100644 --- a/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs +++ b/crates/web-sys/src/features/gen_BluetoothAdvertisingEventInit.rs @@ -139,7 +139,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &BluetoothAdvertisingEventInit) -> Option; + pub fn get_name(this: &BluetoothAdvertisingEventInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothDevice.rs b/crates/web-sys/src/features/gen_BluetoothDevice.rs index 290effe3ff4..f764a96d54e 100644 --- a/crates/web-sys/src/features/gen_BluetoothDevice.rs +++ b/crates/web-sys/src/features/gen_BluetoothDevice.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn id(this: &BluetoothDevice) -> String; + pub fn id(this: &BluetoothDevice) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = name)] #[doc = "Getter for the `name` field of this object."] @@ -37,7 +37,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn name(this: &BluetoothDevice) -> Option; + pub fn name(this: &BluetoothDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothRemoteGattServer")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothDevice" , js_name = gatt)] diff --git a/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs b/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs index 8f7db520c1e..7ed69962541 100644 --- a/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs +++ b/crates/web-sys/src/features/gen_BluetoothLeScanFilterInit.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &BluetoothLeScanFilterInit) -> Option; + pub fn get_name(this: &BluetoothLeScanFilterInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] @@ -58,7 +58,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "namePrefix")] - pub fn get_name_prefix(this: &BluetoothLeScanFilterInit) -> Option; + pub fn get_name_prefix(this: &BluetoothLeScanFilterInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `namePrefix` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs b/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs index 61715c45bf0..1792f5dc535 100644 --- a/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs +++ b/crates/web-sys/src/features/gen_BluetoothPermissionDescriptor.rs @@ -60,7 +60,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "deviceId")] - pub fn get_device_id(this: &BluetoothPermissionDescriptor) -> Option; + pub fn get_device_id(this: &BluetoothPermissionDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `deviceId` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs b/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs index f185f07bc63..558acf559ec 100644 --- a/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs +++ b/crates/web-sys/src/features/gen_BluetoothRemoteGattCharacteristic.rs @@ -38,7 +38,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn uuid(this: &BluetoothRemoteGattCharacteristic) -> String; + pub fn uuid(this: &BluetoothRemoteGattCharacteristic) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "BluetoothCharacteristicProperties")] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTCharacteristic" , js_name = properties)] diff --git a/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs b/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs index 76e5709586e..3bcaa2710d6 100644 --- a/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs +++ b/crates/web-sys/src/features/gen_BluetoothRemoteGattDescriptor.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn uuid(this: &BluetoothRemoteGattDescriptor) -> String; + pub fn uuid(this: &BluetoothRemoteGattDescriptor) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTDescriptor" , js_name = value)] #[doc = "Getter for the `value` field of this object."] diff --git a/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs b/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs index 15dbccb8d73..5e98ade8f1c 100644 --- a/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs +++ b/crates/web-sys/src/features/gen_BluetoothRemoteGattService.rs @@ -38,7 +38,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn uuid(this: &BluetoothRemoteGattService) -> String; + pub fn uuid(this: &BluetoothRemoteGattService) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "BluetoothRemoteGATTService" , js_name = isPrimary)] #[doc = "Getter for the `isPrimary` field of this object."] diff --git a/crates/web-sys/src/features/gen_BluetoothUuid.rs b/crates/web-sys/src/features/gen_BluetoothUuid.rs index 7e2d6310f54..722f9cc6a1a 100644 --- a/crates/web-sys/src/features/gen_BluetoothUuid.rs +++ b/crates/web-sys/src/features/gen_BluetoothUuid.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn canonical_uuid(alias: u32) -> String; + pub fn canonical_uuid(alias: u32) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getCharacteristic)] #[doc = "The `getCharacteristic()` method."] @@ -37,7 +37,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_characteristic_with_str(name: &str) -> String; + pub fn get_characteristic_with_str(name: &str) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getCharacteristic)] #[doc = "The `getCharacteristic()` method."] @@ -48,7 +48,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_characteristic_with_u32(name: u32) -> String; + pub fn get_characteristic_with_u32(name: u32) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getDescriptor)] #[doc = "The `getDescriptor()` method."] @@ -59,7 +59,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_descriptor_with_str(name: &str) -> String; + pub fn get_descriptor_with_str(name: &str) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getDescriptor)] #[doc = "The `getDescriptor()` method."] @@ -70,7 +70,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_descriptor_with_u32(name: u32) -> String; + pub fn get_descriptor_with_u32(name: u32) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getService)] #[doc = "The `getService()` method."] @@ -81,7 +81,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_service_with_str(name: &str) -> String; + pub fn get_service_with_str(name: &str) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (static_method_of = BluetoothUuid , js_class = "BluetoothUUID" , js_name = getService)] #[doc = "The `getService()` method."] @@ -92,5 +92,5 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn get_service_with_u32(name: u32) -> String; + pub fn get_service_with_u32(name: u32) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_BroadcastChannel.rs b/crates/web-sys/src/features/gen_BroadcastChannel.rs index 5f607d07d82..aa52f8205da 100644 --- a/crates/web-sys/src/features/gen_BroadcastChannel.rs +++ b/crates/web-sys/src/features/gen_BroadcastChannel.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] - pub fn name(this: &BroadcastChannel) -> String; + pub fn name(this: &BroadcastChannel) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "BroadcastChannel" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs b/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs index d41ec3553ef..2d4fe5e2311 100644 --- a/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs +++ b/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] #[wasm_bindgen(method, getter = "filename")] - pub fn get_filename(this: &BrowserElementDownloadOptions) -> Option; + pub fn get_filename(this: &BrowserElementDownloadOptions) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] #[wasm_bindgen(method, getter = "referrer")] - pub fn get_referrer(this: &BrowserElementDownloadOptions) -> Option; + pub fn get_referrer(this: &BrowserElementDownloadOptions) -> Option<::alloc::string::String>; #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] diff --git a/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs b/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs index d5cb2dbd650..04424595cb3 100644 --- a/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs +++ b/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs @@ -14,7 +14,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] #[wasm_bindgen(method, getter = "origin")] - pub fn get_origin(this: &BrowserElementExecuteScriptOptions) -> Option; + pub fn get_origin(this: &BrowserElementExecuteScriptOptions) + -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] @@ -24,7 +25,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] #[wasm_bindgen(method, getter = "url")] - pub fn get_url(this: &BrowserElementExecuteScriptOptions) -> Option; + pub fn get_url(this: &BrowserElementExecuteScriptOptions) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] diff --git a/crates/web-sys/src/features/gen_CacheBatchOperation.rs b/crates/web-sys/src/features/gen_CacheBatchOperation.rs index 3712535a7b8..4a1f6b009fa 100644 --- a/crates/web-sys/src/features/gen_CacheBatchOperation.rs +++ b/crates/web-sys/src/features/gen_CacheBatchOperation.rs @@ -50,7 +50,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &CacheBatchOperation) -> Option; + pub fn get_type(this: &CacheBatchOperation) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] diff --git a/crates/web-sys/src/features/gen_CacheQueryOptions.rs b/crates/web-sys/src/features/gen_CacheQueryOptions.rs index 3497a49e5f8..18ff89a31c1 100644 --- a/crates/web-sys/src/features/gen_CacheQueryOptions.rs +++ b/crates/web-sys/src/features/gen_CacheQueryOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] #[wasm_bindgen(method, getter = "cacheName")] - pub fn get_cache_name(this: &CacheQueryOptions) -> Option; + pub fn get_cache_name(this: &CacheQueryOptions) -> Option<::alloc::string::String>; #[doc = "Change the `cacheName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] diff --git a/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs b/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs index bbdf299b9b9..6fcc8018793 100644 --- a/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs +++ b/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs @@ -40,7 +40,9 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn global_composite_operation(this: &CanvasRenderingContext2d) -> Result; + pub fn global_composite_operation( + this: &CanvasRenderingContext2d, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "CanvasRenderingContext2D" , js_name = globalCompositeOperation)] #[doc = "Setter for the `globalCompositeOperation` field of this object."] #[doc = ""] @@ -136,7 +138,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn filter(this: &CanvasRenderingContext2d) -> String; + pub fn filter(this: &CanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = filter)] #[doc = "Setter for the `filter` field of this object."] #[doc = ""] @@ -178,7 +180,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn line_cap(this: &CanvasRenderingContext2d) -> String; + pub fn line_cap(this: &CanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineCap)] #[doc = "Setter for the `lineCap` field of this object."] #[doc = ""] @@ -192,7 +194,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn line_join(this: &CanvasRenderingContext2d) -> String; + pub fn line_join(this: &CanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineJoin)] #[doc = "Setter for the `lineJoin` field of this object."] #[doc = ""] @@ -276,7 +278,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn shadow_color(this: &CanvasRenderingContext2d) -> String; + pub fn shadow_color(this: &CanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowColor)] #[doc = "Setter for the `shadowColor` field of this object."] #[doc = ""] @@ -290,7 +292,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn font(this: &CanvasRenderingContext2d) -> String; + pub fn font(this: &CanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = font)] #[doc = "Setter for the `font` field of this object."] #[doc = ""] @@ -304,7 +306,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn text_align(this: &CanvasRenderingContext2d) -> String; + pub fn text_align(this: &CanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textAlign)] #[doc = "Setter for the `textAlign` field of this object."] #[doc = ""] @@ -318,7 +320,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] - pub fn text_baseline(this: &CanvasRenderingContext2d) -> String; + pub fn text_baseline(this: &CanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textBaseline)] #[doc = "Setter for the `textBaseline` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs b/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs index 093dd71087f..4ae63a8fc6e 100644 --- a/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs +++ b/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs @@ -101,7 +101,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] #[wasm_bindgen(method, getter = "selectedTextContent")] - pub fn get_selected_text_content(this: &CaretStateChangedEventInit) -> Option; + pub fn get_selected_text_content( + this: &CaretStateChangedEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `selectedTextContent` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] diff --git a/crates/web-sys/src/features/gen_CharacterData.rs b/crates/web-sys/src/features/gen_CharacterData.rs index 78820080b9f..39e417042ec 100644 --- a/crates/web-sys/src/features/gen_CharacterData.rs +++ b/crates/web-sys/src/features/gen_CharacterData.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] - pub fn data(this: &CharacterData) -> String; + pub fn data(this: &CharacterData) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CharacterData" , js_name = data)] #[doc = "Setter for the `data` field of this object."] #[doc = ""] @@ -88,8 +88,11 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/substringData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] - pub fn substring_data(this: &CharacterData, offset: u32, count: u32) - -> Result; + pub fn substring_data( + this: &CharacterData, + offset: u32, + count: u32, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , variadic , js_class = "CharacterData" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CheckerboardReport.rs b/crates/web-sys/src/features/gen_CheckerboardReport.rs index 68840404323..465660a3021 100644 --- a/crates/web-sys/src/features/gen_CheckerboardReport.rs +++ b/crates/web-sys/src/features/gen_CheckerboardReport.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] #[wasm_bindgen(method, getter = "log")] - pub fn get_log(this: &CheckerboardReport) -> Option; + pub fn get_log(this: &CheckerboardReport) -> Option<::alloc::string::String>; #[doc = "Change the `log` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] diff --git a/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs b/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs index 7ab4711ab1c..822f3d11b90 100644 --- a/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs +++ b/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &ChromeFilePropertyBag) -> Option; + pub fn get_type(this: &ChromeFilePropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &ChromeFilePropertyBag) -> Option; + pub fn get_name(this: &ChromeFilePropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] diff --git a/crates/web-sys/src/features/gen_Client.rs b/crates/web-sys/src/features/gen_Client.rs index 28af0c18680..081745cf069 100644 --- a/crates/web-sys/src/features/gen_Client.rs +++ b/crates/web-sys/src/features/gen_Client.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] - pub fn url(this: &Client) -> String; + pub fn url(this: &Client) -> ::alloc::string::String; #[cfg(feature = "FrameType")] # [wasm_bindgen (structural , method , getter , js_class = "Client" , js_name = frameType)] #[doc = "Getter for the `frameType` field of this object."] @@ -41,7 +41,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Client`*"] - pub fn id(this: &Client) -> String; + pub fn id(this: &Client) -> ::alloc::string::String; # [wasm_bindgen (catch , method , structural , js_class = "Client" , js_name = postMessage)] #[doc = "The `postMessage()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CloseEvent.rs b/crates/web-sys/src/features/gen_CloseEvent.rs index 5a4d403608f..0826d7980f6 100644 --- a/crates/web-sys/src/features/gen_CloseEvent.rs +++ b/crates/web-sys/src/features/gen_CloseEvent.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] - pub fn reason(this: &CloseEvent) -> String; + pub fn reason(this: &CloseEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "CloseEvent")] #[doc = "The `new CloseEvent(..)` constructor, creating a new instance of `CloseEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CloseEventInit.rs b/crates/web-sys/src/features/gen_CloseEventInit.rs index 841376c6536..6c6ba233506 100644 --- a/crates/web-sys/src/features/gen_CloseEventInit.rs +++ b/crates/web-sys/src/features/gen_CloseEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] #[wasm_bindgen(method, getter = "reason")] - pub fn get_reason(this: &CloseEventInit) -> Option; + pub fn get_reason(this: &CloseEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] diff --git a/crates/web-sys/src/features/gen_CollectedClientData.rs b/crates/web-sys/src/features/gen_CollectedClientData.rs index 0631b9bb553..cedc2994107 100644 --- a/crates/web-sys/src/features/gen_CollectedClientData.rs +++ b/crates/web-sys/src/features/gen_CollectedClientData.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, getter = "challenge")] - pub fn get_challenge(this: &CollectedClientData) -> String; + pub fn get_challenge(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[deprecated] #[wasm_bindgen(method, getter = "hashAlgorithm")] - pub fn get_hash_algorithm(this: &CollectedClientData) -> String; + pub fn get_hash_algorithm(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `hashAlgorithm` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] @@ -65,7 +65,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, getter = "origin")] - pub fn get_origin(this: &CollectedClientData) -> String; + pub fn get_origin(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] @@ -88,7 +88,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[deprecated] #[wasm_bindgen(method, getter = "tokenBindingId")] - pub fn get_token_binding_id(this: &CollectedClientData) -> Option; + pub fn get_token_binding_id(this: &CollectedClientData) -> Option<::alloc::string::String>; #[doc = "Change the `tokenBindingId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] @@ -99,7 +99,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &CollectedClientData) -> String; + pub fn get_type(this: &CollectedClientData) -> ::alloc::string::String; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] diff --git a/crates/web-sys/src/features/gen_CompositionEvent.rs b/crates/web-sys/src/features/gen_CompositionEvent.rs index b68af4ec04f..c9b9b70beb9 100644 --- a/crates/web-sys/src/features/gen_CompositionEvent.rs +++ b/crates/web-sys/src/features/gen_CompositionEvent.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] - pub fn data(this: &CompositionEvent) -> Option; + pub fn data(this: &CompositionEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "CompositionEvent" , js_name = locale)] #[doc = "Getter for the `locale` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/locale)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] - pub fn locale(this: &CompositionEvent) -> String; + pub fn locale(this: &CompositionEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "CompositionEvent")] #[doc = "The `new CompositionEvent(..)` constructor, creating a new instance of `CompositionEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CompositionEventInit.rs b/crates/web-sys/src/features/gen_CompositionEventInit.rs index 79acc2f4d53..bfdf96dc739 100644 --- a/crates/web-sys/src/features/gen_CompositionEventInit.rs +++ b/crates/web-sys/src/features/gen_CompositionEventInit.rs @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] #[wasm_bindgen(method, getter = "data")] - pub fn get_data(this: &CompositionEventInit) -> Option; + pub fn get_data(this: &CompositionEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] diff --git a/crates/web-sys/src/features/gen_ComputedEffectTiming.rs b/crates/web-sys/src/features/gen_ComputedEffectTiming.rs index a079e830f73..fa4e8bb9660 100644 --- a/crates/web-sys/src/features/gen_ComputedEffectTiming.rs +++ b/crates/web-sys/src/features/gen_ComputedEffectTiming.rs @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &ComputedEffectTiming) -> Option; + pub fn get_easing(this: &ComputedEffectTiming) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] diff --git a/crates/web-sys/src/features/gen_ConnStatusDict.rs b/crates/web-sys/src/features/gen_ConnStatusDict.rs index e30dac419c1..b17e323e2db 100644 --- a/crates/web-sys/src/features/gen_ConnStatusDict.rs +++ b/crates/web-sys/src/features/gen_ConnStatusDict.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] #[wasm_bindgen(method, getter = "status")] - pub fn get_status(this: &ConnStatusDict) -> Option; + pub fn get_status(this: &ConnStatusDict) -> Option<::alloc::string::String>; #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleCounter.rs b/crates/web-sys/src/features/gen_ConsoleCounter.rs index 324e055fd0f..fba207d2fa0 100644 --- a/crates/web-sys/src/features/gen_ConsoleCounter.rs +++ b/crates/web-sys/src/features/gen_ConsoleCounter.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &ConsoleCounter) -> Option; + pub fn get_label(this: &ConsoleCounter) -> Option<::alloc::string::String>; #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleCounterError.rs b/crates/web-sys/src/features/gen_ConsoleCounterError.rs index bbc0a56a2f8..b4c247d7835 100644 --- a/crates/web-sys/src/features/gen_ConsoleCounterError.rs +++ b/crates/web-sys/src/features/gen_ConsoleCounterError.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] #[wasm_bindgen(method, getter = "error")] - pub fn get_error(this: &ConsoleCounterError) -> Option; + pub fn get_error(this: &ConsoleCounterError) -> Option<::alloc::string::String>; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &ConsoleCounterError) -> Option; + pub fn get_label(this: &ConsoleCounterError) -> Option<::alloc::string::String>; #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleEvent.rs b/crates/web-sys/src/features/gen_ConsoleEvent.rs index 1ab9de14dd2..84437d969a8 100644 --- a/crates/web-sys/src/features/gen_ConsoleEvent.rs +++ b/crates/web-sys/src/features/gen_ConsoleEvent.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "addonId")] - pub fn get_addon_id(this: &ConsoleEvent) -> Option; + pub fn get_addon_id(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `addonId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "consoleID")] - pub fn get_console_id(this: &ConsoleEvent) -> Option; + pub fn get_console_id(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "filename")] - pub fn get_filename(this: &ConsoleEvent) -> Option; + pub fn get_filename(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] @@ -84,7 +84,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "functionName")] - pub fn get_function_name(this: &ConsoleEvent) -> Option; + pub fn get_function_name(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] @@ -94,7 +94,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "groupName")] - pub fn get_group_name(this: &ConsoleEvent) -> Option; + pub fn get_group_name(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `groupName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] @@ -114,7 +114,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "level")] - pub fn get_level(this: &ConsoleEvent) -> Option; + pub fn get_level(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `level` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] @@ -134,7 +134,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] #[wasm_bindgen(method, getter = "prefix")] - pub fn get_prefix(this: &ConsoleEvent) -> Option; + pub fn get_prefix(this: &ConsoleEvent) -> Option<::alloc::string::String>; #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs b/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs index 49f01a0f33e..367bbe939a7 100644 --- a/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs +++ b/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "consoleID")] - pub fn get_console_id(this: &ConsoleInstanceOptions) -> Option; + pub fn get_console_id(this: &ConsoleInstanceOptions) -> Option<::alloc::string::String>; #[doc = "Change the `consoleID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "innerID")] - pub fn get_inner_id(this: &ConsoleInstanceOptions) -> Option; + pub fn get_inner_id(this: &ConsoleInstanceOptions) -> Option<::alloc::string::String>; #[doc = "Change the `innerID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] @@ -56,7 +56,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "maxLogLevelPref")] - pub fn get_max_log_level_pref(this: &ConsoleInstanceOptions) -> Option; + pub fn get_max_log_level_pref(this: &ConsoleInstanceOptions) + -> Option<::alloc::string::String>; #[doc = "Change the `maxLogLevelPref` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] @@ -66,7 +67,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] #[wasm_bindgen(method, getter = "prefix")] - pub fn get_prefix(this: &ConsoleInstanceOptions) -> Option; + pub fn get_prefix(this: &ConsoleInstanceOptions) -> Option<::alloc::string::String>; #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs b/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs index a845e746dc1..a72113f54eb 100644 --- a/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs +++ b/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] #[wasm_bindgen(method, getter = "action")] - pub fn get_action(this: &ConsoleProfileEvent) -> Option; + pub fn get_action(this: &ConsoleProfileEvent) -> Option<::alloc::string::String>; #[doc = "Change the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleStackEntry.rs b/crates/web-sys/src/features/gen_ConsoleStackEntry.rs index b1ffa84f6de..17b77e97c40 100644 --- a/crates/web-sys/src/features/gen_ConsoleStackEntry.rs +++ b/crates/web-sys/src/features/gen_ConsoleStackEntry.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "asyncCause")] - pub fn get_async_cause(this: &ConsoleStackEntry) -> Option; + pub fn get_async_cause(this: &ConsoleStackEntry) -> Option<::alloc::string::String>; #[doc = "Change the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "filename")] - pub fn get_filename(this: &ConsoleStackEntry) -> Option; + pub fn get_filename(this: &ConsoleStackEntry) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] #[wasm_bindgen(method, getter = "functionName")] - pub fn get_function_name(this: &ConsoleStackEntry) -> Option; + pub fn get_function_name(this: &ConsoleStackEntry) -> Option<::alloc::string::String>; #[doc = "Change the `functionName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleTimerError.rs b/crates/web-sys/src/features/gen_ConsoleTimerError.rs index b23bcbf3963..f77827833f8 100644 --- a/crates/web-sys/src/features/gen_ConsoleTimerError.rs +++ b/crates/web-sys/src/features/gen_ConsoleTimerError.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] #[wasm_bindgen(method, getter = "error")] - pub fn get_error(this: &ConsoleTimerError) -> Option; + pub fn get_error(this: &ConsoleTimerError) -> Option<::alloc::string::String>; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &ConsoleTimerError) -> Option; + pub fn get_name(this: &ConsoleTimerError) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs b/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs index 7e74b760b0a..dde9cc9ade7 100644 --- a/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs +++ b/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &ConsoleTimerLogOrEnd) -> Option; + pub fn get_name(this: &ConsoleTimerLogOrEnd) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] diff --git a/crates/web-sys/src/features/gen_ConsoleTimerStart.rs b/crates/web-sys/src/features/gen_ConsoleTimerStart.rs index 5d3bd715226..a915ed10f00 100644 --- a/crates/web-sys/src/features/gen_ConsoleTimerStart.rs +++ b/crates/web-sys/src/features/gen_ConsoleTimerStart.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &ConsoleTimerStart) -> Option; + pub fn get_name(this: &ConsoleTimerStart) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] diff --git a/crates/web-sys/src/features/gen_Credential.rs b/crates/web-sys/src/features/gen_Credential.rs index 3df07adfc6d..7be4b17fd59 100644 --- a/crates/web-sys/src/features/gen_Credential.rs +++ b/crates/web-sys/src/features/gen_Credential.rs @@ -18,12 +18,12 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`*"] - pub fn id(this: &Credential) -> String; + pub fn id(this: &Credential) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Credential" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Credential`*"] - pub fn type_(this: &Credential) -> String; + pub fn type_(this: &Credential) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_Crypto.rs b/crates/web-sys/src/features/gen_Crypto.rs index 44734501c78..6cc25458687 100644 --- a/crates/web-sys/src/features/gen_Crypto.rs +++ b/crates/web-sys/src/features/gen_Crypto.rs @@ -56,5 +56,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] - pub fn random_uuid(this: &Crypto) -> String; + pub fn random_uuid(this: &Crypto) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_CryptoKey.rs b/crates/web-sys/src/features/gen_CryptoKey.rs index d040b14e9e5..f538e966c8f 100644 --- a/crates/web-sys/src/features/gen_CryptoKey.rs +++ b/crates/web-sys/src/features/gen_CryptoKey.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] - pub fn type_(this: &CryptoKey) -> String; + pub fn type_(this: &CryptoKey) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "CryptoKey" , js_name = extractable)] #[doc = "Getter for the `extractable` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssAnimation.rs b/crates/web-sys/src/features/gen_CssAnimation.rs index 8ea86613744..f55ebbdf4ee 100644 --- a/crates/web-sys/src/features/gen_CssAnimation.rs +++ b/crates/web-sys/src/features/gen_CssAnimation.rs @@ -18,5 +18,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSAnimation/animationName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssAnimation`*"] - pub fn animation_name(this: &CssAnimation) -> String; + pub fn animation_name(this: &CssAnimation) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_CssConditionRule.rs b/crates/web-sys/src/features/gen_CssConditionRule.rs index caf51a6bff7..3df4d77159d 100644 --- a/crates/web-sys/src/features/gen_CssConditionRule.rs +++ b/crates/web-sys/src/features/gen_CssConditionRule.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] - pub fn condition_text(this: &CssConditionRule) -> String; + pub fn condition_text(this: &CssConditionRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSConditionRule" , js_name = conditionText)] #[doc = "Setter for the `conditionText` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssCounterStyleRule.rs b/crates/web-sys/src/features/gen_CssCounterStyleRule.rs index 905e57b5481..79d6e842610 100644 --- a/crates/web-sys/src/features/gen_CssCounterStyleRule.rs +++ b/crates/web-sys/src/features/gen_CssCounterStyleRule.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn name(this: &CssCounterStyleRule) -> String; + pub fn name(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/system)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn system(this: &CssCounterStyleRule) -> String; + pub fn system(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = system)] #[doc = "Setter for the `system` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/symbols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn symbols(this: &CssCounterStyleRule) -> String; + pub fn symbols(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = symbols)] #[doc = "Setter for the `symbols` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/additiveSymbols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn additive_symbols(this: &CssCounterStyleRule) -> String; + pub fn additive_symbols(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = additiveSymbols)] #[doc = "Setter for the `additiveSymbols` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/negative)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn negative(this: &CssCounterStyleRule) -> String; + pub fn negative(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = negative)] #[doc = "Setter for the `negative` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn prefix(this: &CssCounterStyleRule) -> String; + pub fn prefix(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = prefix)] #[doc = "Setter for the `prefix` field of this object."] #[doc = ""] @@ -102,7 +102,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/suffix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn suffix(this: &CssCounterStyleRule) -> String; + pub fn suffix(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = suffix)] #[doc = "Setter for the `suffix` field of this object."] #[doc = ""] @@ -116,7 +116,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/range)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn range(this: &CssCounterStyleRule) -> String; + pub fn range(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = range)] #[doc = "Setter for the `range` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/pad)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn pad(this: &CssCounterStyleRule) -> String; + pub fn pad(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = pad)] #[doc = "Setter for the `pad` field of this object."] #[doc = ""] @@ -144,7 +144,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/speakAs)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn speak_as(this: &CssCounterStyleRule) -> String; + pub fn speak_as(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = speakAs)] #[doc = "Setter for the `speakAs` field of this object."] #[doc = ""] @@ -158,7 +158,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/fallback)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] - pub fn fallback(this: &CssCounterStyleRule) -> String; + pub fn fallback(this: &CssCounterStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = fallback)] #[doc = "Setter for the `fallback` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs b/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs index fdbdebb4ade..73399c5efab 100644 --- a/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs +++ b/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] - pub fn font_family(this: &CssFontFeatureValuesRule) -> String; + pub fn font_family(this: &CssFontFeatureValuesRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = fontFamily)] #[doc = "Setter for the `fontFamily` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] - pub fn value_text(this: &CssFontFeatureValuesRule) -> String; + pub fn value_text(this: &CssFontFeatureValuesRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = valueText)] #[doc = "Setter for the `valueText` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssImportRule.rs b/crates/web-sys/src/features/gen_CssImportRule.rs index 729cbdeb1c0..335c6ed55f7 100644 --- a/crates/web-sys/src/features/gen_CssImportRule.rs +++ b/crates/web-sys/src/features/gen_CssImportRule.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"] - pub fn href(this: &CssImportRule) -> String; + pub fn href(this: &CssImportRule) -> ::alloc::string::String; #[cfg(feature = "MediaList")] # [wasm_bindgen (structural , method , getter , js_class = "CSSImportRule" , js_name = media)] #[doc = "Getter for the `media` field of this object."] diff --git a/crates/web-sys/src/features/gen_CssKeyframeRule.rs b/crates/web-sys/src/features/gen_CssKeyframeRule.rs index 3b9039e79cd..7ca5caacf9f 100644 --- a/crates/web-sys/src/features/gen_CssKeyframeRule.rs +++ b/crates/web-sys/src/features/gen_CssKeyframeRule.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] - pub fn key_text(this: &CssKeyframeRule) -> String; + pub fn key_text(this: &CssKeyframeRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSKeyframeRule" , js_name = keyText)] #[doc = "Setter for the `keyText` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssKeyframesRule.rs b/crates/web-sys/src/features/gen_CssKeyframesRule.rs index f71fbc641ca..2526fb3e576 100644 --- a/crates/web-sys/src/features/gen_CssKeyframesRule.rs +++ b/crates/web-sys/src/features/gen_CssKeyframesRule.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] - pub fn name(this: &CssKeyframesRule) -> String; + pub fn name(this: &CssKeyframesRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSKeyframesRule" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssNamespaceRule.rs b/crates/web-sys/src/features/gen_CssNamespaceRule.rs index b3b14b21c19..d21e37b678a 100644 --- a/crates/web-sys/src/features/gen_CssNamespaceRule.rs +++ b/crates/web-sys/src/features/gen_CssNamespaceRule.rs @@ -18,12 +18,12 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] - pub fn namespace_uri(this: &CssNamespaceRule) -> String; + pub fn namespace_uri(this: &CssNamespaceRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "CSSNamespaceRule" , js_name = prefix)] #[doc = "Getter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] - pub fn prefix(this: &CssNamespaceRule) -> String; + pub fn prefix(this: &CssNamespaceRule) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_CssPseudoElement.rs b/crates/web-sys/src/features/gen_CssPseudoElement.rs index ccd8c3a9b91..7e5fe8f9e47 100644 --- a/crates/web-sys/src/features/gen_CssPseudoElement.rs +++ b/crates/web-sys/src/features/gen_CssPseudoElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] - pub fn type_(this: &CssPseudoElement) -> String; + pub fn type_(this: &CssPseudoElement) -> ::alloc::string::String; #[cfg(feature = "Element")] # [wasm_bindgen (structural , method , getter , js_class = "CSSPseudoElement" , js_name = parentElement)] #[doc = "Getter for the `parentElement` field of this object."] diff --git a/crates/web-sys/src/features/gen_CssRule.rs b/crates/web-sys/src/features/gen_CssRule.rs index 07c5ac757f3..91c4a8a8505 100644 --- a/crates/web-sys/src/features/gen_CssRule.rs +++ b/crates/web-sys/src/features/gen_CssRule.rs @@ -25,7 +25,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/cssText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] - pub fn css_text(this: &CssRule) -> String; + pub fn css_text(this: &CssRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSRule" , js_name = cssText)] #[doc = "Setter for the `cssText` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssStyleDeclaration.rs b/crates/web-sys/src/features/gen_CssStyleDeclaration.rs index 6e4f9b00e5b..dfe0ea7cdce 100644 --- a/crates/web-sys/src/features/gen_CssStyleDeclaration.rs +++ b/crates/web-sys/src/features/gen_CssStyleDeclaration.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] - pub fn css_text(this: &CssStyleDeclaration) -> String; + pub fn css_text(this: &CssStyleDeclaration) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSStyleDeclaration" , js_name = cssText)] #[doc = "Setter for the `cssText` field of this object."] #[doc = ""] @@ -47,7 +47,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] - pub fn get_property_priority(this: &CssStyleDeclaration, property: &str) -> String; + pub fn get_property_priority( + this: &CssStyleDeclaration, + property: &str, + ) -> ::alloc::string::String; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = getPropertyValue)] #[doc = "The `getPropertyValue()` method."] #[doc = ""] @@ -57,21 +60,24 @@ extern "C" { pub fn get_property_value( this: &CssStyleDeclaration, property: &str, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (method , structural , js_class = "CSSStyleDeclaration" , js_name = item)] #[doc = "The `item()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] - pub fn item(this: &CssStyleDeclaration, index: u32) -> String; + pub fn item(this: &CssStyleDeclaration, index: u32) -> ::alloc::string::String; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = removeProperty)] #[doc = "The `removeProperty()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/removeProperty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] - pub fn remove_property(this: &CssStyleDeclaration, property: &str) -> Result; + pub fn remove_property( + this: &CssStyleDeclaration, + property: &str, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = setProperty)] #[doc = "The `setProperty()` method."] #[doc = ""] @@ -101,5 +107,5 @@ extern "C" { #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] - pub fn get(this: &CssStyleDeclaration, index: u32) -> Option; + pub fn get(this: &CssStyleDeclaration, index: u32) -> Option<::alloc::string::String>; } diff --git a/crates/web-sys/src/features/gen_CssStyleRule.rs b/crates/web-sys/src/features/gen_CssStyleRule.rs index 09caa515165..c96d34cc5d0 100644 --- a/crates/web-sys/src/features/gen_CssStyleRule.rs +++ b/crates/web-sys/src/features/gen_CssStyleRule.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] - pub fn selector_text(this: &CssStyleRule) -> String; + pub fn selector_text(this: &CssStyleRule) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "CSSStyleRule" , js_name = selectorText)] #[doc = "Setter for the `selectorText` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_CssTransition.rs b/crates/web-sys/src/features/gen_CssTransition.rs index 65844e9b6e2..3654703b497 100644 --- a/crates/web-sys/src/features/gen_CssTransition.rs +++ b/crates/web-sys/src/features/gen_CssTransition.rs @@ -18,5 +18,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSTransition/transitionProperty)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `CssTransition`*"] - pub fn transition_property(this: &CssTransition) -> String; + pub fn transition_property(this: &CssTransition) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_DataTransfer.rs b/crates/web-sys/src/features/gen_DataTransfer.rs index 131bba60bec..763633bfa7d 100644 --- a/crates/web-sys/src/features/gen_DataTransfer.rs +++ b/crates/web-sys/src/features/gen_DataTransfer.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] - pub fn drop_effect(this: &DataTransfer) -> String; + pub fn drop_effect(this: &DataTransfer) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = dropEffect)] #[doc = "Setter for the `dropEffect` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] - pub fn effect_allowed(this: &DataTransfer) -> String; + pub fn effect_allowed(this: &DataTransfer) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "DataTransfer" , js_name = effectAllowed)] #[doc = "Setter for the `effectAllowed` field of this object."] #[doc = ""] @@ -90,7 +90,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getData)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] - pub fn get_data(this: &DataTransfer, format: &str) -> Result; + pub fn get_data(this: &DataTransfer, format: &str) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "DataTransfer" , js_name = getFiles)] #[doc = "The `getFiles()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DataTransferItem.rs b/crates/web-sys/src/features/gen_DataTransferItem.rs index 98f4e8dba94..5942032ce5c 100644 --- a/crates/web-sys/src/features/gen_DataTransferItem.rs +++ b/crates/web-sys/src/features/gen_DataTransferItem.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] - pub fn kind(this: &DataTransferItem) -> String; + pub fn kind(this: &DataTransferItem) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DataTransferItem" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] - pub fn type_(this: &DataTransferItem) -> String; + pub fn type_(this: &DataTransferItem) -> ::alloc::string::String; #[cfg(feature = "File")] # [wasm_bindgen (catch , method , structural , js_class = "DataTransferItem" , js_name = getAsFile)] #[doc = "The `getAsFile()` method."] diff --git a/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs b/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs index bbd77e5cfeb..71185fca1ff 100644 --- a/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs +++ b/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "decodeIssue")] - pub fn get_decode_issue(this: &DecoderDoctorNotification) -> Option; + pub fn get_decode_issue(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `decodeIssue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] @@ -24,7 +24,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "decoderDoctorReportId")] - pub fn get_decoder_doctor_report_id(this: &DecoderDoctorNotification) -> String; + pub fn get_decoder_doctor_report_id( + this: &DecoderDoctorNotification, + ) -> ::alloc::string::String; #[doc = "Change the `decoderDoctorReportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] @@ -34,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "docURL")] - pub fn get_doc_url(this: &DecoderDoctorNotification) -> Option; + pub fn get_doc_url(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `docURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] @@ -44,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "formats")] - pub fn get_formats(this: &DecoderDoctorNotification) -> Option; + pub fn get_formats(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `formats` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] @@ -64,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] #[wasm_bindgen(method, getter = "resourceURL")] - pub fn get_resource_url(this: &DecoderDoctorNotification) -> Option; + pub fn get_resource_url(this: &DecoderDoctorNotification) -> Option<::alloc::string::String>; #[doc = "Change the `resourceURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] diff --git a/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs index fff3988a169..79d14f2a6f8 100644 --- a/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] - pub fn name(this: &DedicatedWorkerGlobalScope) -> String; + pub fn name(this: &DedicatedWorkerGlobalScope) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs b/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs index 323ac4159d7..54f4bb8119d 100644 --- a/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs +++ b/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &DhKeyDeriveParams) -> String; + pub fn get_name(this: &DhKeyDeriveParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] diff --git a/crates/web-sys/src/features/gen_Directory.rs b/crates/web-sys/src/features/gen_Directory.rs index 53d3eb022dd..81f41df7cf4 100644 --- a/crates/web-sys/src/features/gen_Directory.rs +++ b/crates/web-sys/src/features/gen_Directory.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] - pub fn name(this: &Directory) -> Result; + pub fn name(this: &Directory) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Directory" , js_name = path)] #[doc = "Getter for the `path` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/path)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Directory`*"] - pub fn path(this: &Directory) -> Result; + pub fn path(this: &Directory) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Directory" , js_name = getFiles)] #[doc = "The `getFiles()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DirectoryPickerOptions.rs b/crates/web-sys/src/features/gen_DirectoryPickerOptions.rs index ba0c9ee0569..45ac3c7cf9c 100644 --- a/crates/web-sys/src/features/gen_DirectoryPickerOptions.rs +++ b/crates/web-sys/src/features/gen_DirectoryPickerOptions.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &DirectoryPickerOptions) -> Option; + pub fn get_id(this: &DirectoryPickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DisplayNameOptions.rs b/crates/web-sys/src/features/gen_DisplayNameOptions.rs index 837d9ecad1a..7795b4be0e8 100644 --- a/crates/web-sys/src/features/gen_DisplayNameOptions.rs +++ b/crates/web-sys/src/features/gen_DisplayNameOptions.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] #[wasm_bindgen(method, getter = "style")] - pub fn get_style(this: &DisplayNameOptions) -> Option; + pub fn get_style(this: &DisplayNameOptions) -> Option<::alloc::string::String>; #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] diff --git a/crates/web-sys/src/features/gen_DisplayNameResult.rs b/crates/web-sys/src/features/gen_DisplayNameResult.rs index ccfe023c9ae..66934ee6be9 100644 --- a/crates/web-sys/src/features/gen_DisplayNameResult.rs +++ b/crates/web-sys/src/features/gen_DisplayNameResult.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, getter = "locale")] - pub fn get_locale(this: &DisplayNameResult) -> Option; + pub fn get_locale(this: &DisplayNameResult) -> Option<::alloc::string::String>; #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] #[wasm_bindgen(method, getter = "style")] - pub fn get_style(this: &DisplayNameResult) -> Option; + pub fn get_style(this: &DisplayNameResult) -> Option<::alloc::string::String>; #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] diff --git a/crates/web-sys/src/features/gen_DnsCacheEntry.rs b/crates/web-sys/src/features/gen_DnsCacheEntry.rs index 54d837685fc..ef4dfa82670 100644 --- a/crates/web-sys/src/features/gen_DnsCacheEntry.rs +++ b/crates/web-sys/src/features/gen_DnsCacheEntry.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, getter = "family")] - pub fn get_family(this: &DnsCacheEntry) -> Option; + pub fn get_family(this: &DnsCacheEntry) -> Option<::alloc::string::String>; #[doc = "Change the `family` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] #[wasm_bindgen(method, getter = "hostname")] - pub fn get_hostname(this: &DnsCacheEntry) -> Option; + pub fn get_hostname(this: &DnsCacheEntry) -> Option<::alloc::string::String>; #[doc = "Change the `hostname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] diff --git a/crates/web-sys/src/features/gen_DnsLookupDict.rs b/crates/web-sys/src/features/gen_DnsLookupDict.rs index 3a40b3dac60..1c2a0a874d6 100644 --- a/crates/web-sys/src/features/gen_DnsLookupDict.rs +++ b/crates/web-sys/src/features/gen_DnsLookupDict.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] #[wasm_bindgen(method, getter = "error")] - pub fn get_error(this: &DnsLookupDict) -> Option; + pub fn get_error(this: &DnsLookupDict) -> Option<::alloc::string::String>; #[doc = "Change the `error` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] diff --git a/crates/web-sys/src/features/gen_Document.rs b/crates/web-sys/src/features/gen_Document.rs index 1ca915c769e..648c2b0cbb5 100644 --- a/crates/web-sys/src/features/gen_Document.rs +++ b/crates/web-sys/src/features/gen_Document.rs @@ -26,49 +26,49 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/URL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn url(this: &Document) -> Result; + pub fn url(this: &Document) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Document" , js_name = documentURI)] #[doc = "Getter for the `documentURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn document_uri(this: &Document) -> Result; + pub fn document_uri(this: &Document) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = compatMode)] #[doc = "Getter for the `compatMode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/compatMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn compat_mode(this: &Document) -> String; + pub fn compat_mode(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = characterSet)] #[doc = "Getter for the `characterSet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/characterSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn character_set(this: &Document) -> String; + pub fn character_set(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = charset)] #[doc = "Getter for the `charset` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn charset(this: &Document) -> String; + pub fn charset(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = inputEncoding)] #[doc = "Getter for the `inputEncoding` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/inputEncoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn input_encoding(this: &Document) -> String; + pub fn input_encoding(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = contentType)] #[doc = "Getter for the `contentType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/contentType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn content_type(this: &Document) -> String; + pub fn content_type(this: &Document) -> ::alloc::string::String; #[cfg(feature = "DocumentType")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = doctype)] #[doc = "Getter for the `doctype` field of this object."] @@ -99,28 +99,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn referrer(this: &Document) -> String; + pub fn referrer(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = lastModified)] #[doc = "Getter for the `lastModified` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastModified)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn last_modified(this: &Document) -> String; + pub fn last_modified(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn ready_state(this: &Document) -> String; + pub fn ready_state(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = title)] #[doc = "Getter for the `title` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn title(this: &Document) -> String; + pub fn title(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = title)] #[doc = "Setter for the `title` field of this object."] #[doc = ""] @@ -134,7 +134,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn dir(this: &Document) -> String; + pub fn dir(this: &Document) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = dir)] #[doc = "Setter for the `dir` field of this object."] #[doc = ""] @@ -407,7 +407,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/selectedStyleSheetSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn selected_style_sheet_set(this: &Document) -> Option; + pub fn selected_style_sheet_set(this: &Document) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "Document" , js_name = selectedStyleSheetSet)] #[doc = "Setter for the `selectedStyleSheetSet` field of this object."] #[doc = ""] @@ -421,14 +421,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastStyleSheetSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn last_style_sheet_set(this: &Document) -> Option; + pub fn last_style_sheet_set(this: &Document) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = preferredStyleSheetSet)] #[doc = "Getter for the `preferredStyleSheetSet` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/preferredStyleSheetSet)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Document`*"] - pub fn preferred_style_sheet_set(this: &Document) -> Option; + pub fn preferred_style_sheet_set(this: &Document) -> Option<::alloc::string::String>; #[cfg(feature = "DomStringList")] # [wasm_bindgen (structural , method , getter , js_class = "Document" , js_name = styleSheetSets)] #[doc = "Getter for the `styleSheetSets` field of this object."] diff --git a/crates/web-sys/src/features/gen_DocumentType.rs b/crates/web-sys/src/features/gen_DocumentType.rs index f77d3cebf89..9203a78f242 100644 --- a/crates/web-sys/src/features/gen_DocumentType.rs +++ b/crates/web-sys/src/features/gen_DocumentType.rs @@ -18,21 +18,21 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] - pub fn name(this: &DocumentType) -> String; + pub fn name(this: &DocumentType) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = publicId)] #[doc = "Getter for the `publicId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/publicId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] - pub fn public_id(this: &DocumentType) -> String; + pub fn public_id(this: &DocumentType) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DocumentType" , js_name = systemId)] #[doc = "Getter for the `systemId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/systemId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] - pub fn system_id(this: &DocumentType) -> String; + pub fn system_id(this: &DocumentType) -> ::alloc::string::String; # [wasm_bindgen (catch , method , structural , variadic , js_class = "DocumentType" , js_name = after)] #[doc = "The `after()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomError.rs b/crates/web-sys/src/features/gen_DomError.rs index ba94c8d15fe..7052c88a6b9 100644 --- a/crates/web-sys/src/features/gen_DomError.rs +++ b/crates/web-sys/src/features/gen_DomError.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] - pub fn name(this: &DomError) -> String; + pub fn name(this: &DomError) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DOMError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomError`*"] - pub fn message(this: &DomError) -> String; + pub fn message(this: &DomError) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "DOMError")] #[doc = "The `new DomError(..)` constructor, creating a new instance of `DomError`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomException.rs b/crates/web-sys/src/features/gen_DomException.rs index 760f1135099..7fa5ad37c3c 100644 --- a/crates/web-sys/src/features/gen_DomException.rs +++ b/crates/web-sys/src/features/gen_DomException.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] - pub fn name(this: &DomException) -> String; + pub fn name(this: &DomException) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] - pub fn message(this: &DomException) -> String; + pub fn message(this: &DomException) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] - pub fn filename(this: &DomException) -> String; + pub fn filename(this: &DomException) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "DOMException" , js_name = lineNumber)] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/stack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomException`*"] - pub fn stack(this: &DomException) -> String; + pub fn stack(this: &DomException) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "DOMException")] #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomStringList.rs b/crates/web-sys/src/features/gen_DomStringList.rs index c91f557740a..2f8dcd72f28 100644 --- a/crates/web-sys/src/features/gen_DomStringList.rs +++ b/crates/web-sys/src/features/gen_DomStringList.rs @@ -32,12 +32,12 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] - pub fn item(this: &DomStringList, index: u32) -> Option; + pub fn item(this: &DomStringList, index: u32) -> Option<::alloc::string::String>; #[wasm_bindgen(method, structural, js_class = "DOMStringList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] - pub fn get(this: &DomStringList, index: u32) -> Option; + pub fn get(this: &DomStringList, index: u32) -> Option<::alloc::string::String>; } diff --git a/crates/web-sys/src/features/gen_DomStringMap.rs b/crates/web-sys/src/features/gen_DomStringMap.rs index e7e1c3ae580..0d7a007b1f6 100644 --- a/crates/web-sys/src/features/gen_DomStringMap.rs +++ b/crates/web-sys/src/features/gen_DomStringMap.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] - pub fn get(this: &DomStringMap, name: &str) -> Option; + pub fn get(this: &DomStringMap, name: &str) -> Option<::alloc::string::String>; #[wasm_bindgen(catch, method, structural, js_class = "DOMStringMap", indexing_setter)] #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_DomTokenList.rs b/crates/web-sys/src/features/gen_DomTokenList.rs index 742a389ddc5..a4a58a5f98e 100644 --- a/crates/web-sys/src/features/gen_DomTokenList.rs +++ b/crates/web-sys/src/features/gen_DomTokenList.rs @@ -25,7 +25,7 @@ extern "C" { #[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; + pub fn value(this: &DomTokenList) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "DOMTokenList" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -158,7 +158,7 @@ extern "C" { #[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; + pub fn item(this: &DomTokenList, index: u32) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "DOMTokenList" , js_name = keys)] #[doc = "The `keys()` method."] #[doc = ""] @@ -309,5 +309,5 @@ extern "C" { #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] - pub fn get(this: &DomTokenList, index: u32) -> Option; + pub fn get(this: &DomTokenList, index: u32) -> Option<::alloc::string::String>; } diff --git a/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs b/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs index e45951c04b1..04f512d8bd9 100644 --- a/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &EcKeyAlgorithm) -> String; + pub fn get_name(this: &EcKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "namedCurve")] - pub fn get_named_curve(this: &EcKeyAlgorithm) -> String; + pub fn get_named_curve(this: &EcKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] diff --git a/crates/web-sys/src/features/gen_EcKeyGenParams.rs b/crates/web-sys/src/features/gen_EcKeyGenParams.rs index 8992f7851b3..464905fd8ad 100644 --- a/crates/web-sys/src/features/gen_EcKeyGenParams.rs +++ b/crates/web-sys/src/features/gen_EcKeyGenParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &EcKeyGenParams) -> String; + pub fn get_name(this: &EcKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] #[wasm_bindgen(method, getter = "namedCurve")] - pub fn get_named_curve(this: &EcKeyGenParams) -> String; + pub fn get_named_curve(this: &EcKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] diff --git a/crates/web-sys/src/features/gen_EcKeyImportParams.rs b/crates/web-sys/src/features/gen_EcKeyImportParams.rs index ed789023459..c6265856695 100644 --- a/crates/web-sys/src/features/gen_EcKeyImportParams.rs +++ b/crates/web-sys/src/features/gen_EcKeyImportParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &EcKeyImportParams) -> String; + pub fn get_name(this: &EcKeyImportParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] #[wasm_bindgen(method, getter = "namedCurve")] - pub fn get_named_curve(this: &EcKeyImportParams) -> Option; + pub fn get_named_curve(this: &EcKeyImportParams) -> Option<::alloc::string::String>; #[doc = "Change the `namedCurve` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] diff --git a/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs b/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs index a061a19b0ec..be62df0958b 100644 --- a/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs +++ b/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &EcdhKeyDeriveParams) -> String; + pub fn get_name(this: &EcdhKeyDeriveParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] diff --git a/crates/web-sys/src/features/gen_EcdsaParams.rs b/crates/web-sys/src/features/gen_EcdsaParams.rs index 14fe80e857b..481fad7fe2a 100644 --- a/crates/web-sys/src/features/gen_EcdsaParams.rs +++ b/crates/web-sys/src/features/gen_EcdsaParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &EcdsaParams) -> String; + pub fn get_name(this: &EcdsaParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] diff --git a/crates/web-sys/src/features/gen_EffectTiming.rs b/crates/web-sys/src/features/gen_EffectTiming.rs index 7a43b7a75c0..2db703049ff 100644 --- a/crates/web-sys/src/features/gen_EffectTiming.rs +++ b/crates/web-sys/src/features/gen_EffectTiming.rs @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &EffectTiming) -> Option; + pub fn get_easing(this: &EffectTiming) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] diff --git a/crates/web-sys/src/features/gen_Element.rs b/crates/web-sys/src/features/gen_Element.rs index 4f8180e96fe..afd3417789e 100644 --- a/crates/web-sys/src/features/gen_Element.rs +++ b/crates/web-sys/src/features/gen_Element.rs @@ -18,35 +18,35 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/namespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn namespace_uri(this: &Element) -> Option; + pub fn namespace_uri(this: &Element) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = prefix)] #[doc = "Getter for the `prefix` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn prefix(this: &Element) -> Option; + pub fn prefix(this: &Element) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = localName)] #[doc = "Getter for the `localName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/localName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn local_name(this: &Element) -> String; + pub fn local_name(this: &Element) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = tagName)] #[doc = "Getter for the `tagName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn tag_name(this: &Element) -> String; + pub fn tag_name(this: &Element) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Element" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn id(this: &Element) -> String; + pub fn id(this: &Element) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn class_name(this: &Element) -> String; + pub fn class_name(this: &Element) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = className)] #[doc = "Setter for the `className` field of this object."] #[doc = ""] @@ -160,7 +160,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn inner_html(this: &Element) -> String; + pub fn inner_html(this: &Element) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = innerHTML)] #[doc = "Setter for the `innerHTML` field of this object."] #[doc = ""] @@ -174,7 +174,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn outer_html(this: &Element) -> String; + pub fn outer_html(this: &Element) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = outerHTML)] #[doc = "Setter for the `outerHTML` field of this object."] #[doc = ""] @@ -204,7 +204,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/slot)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn slot(this: &Element) -> String; + pub fn slot(this: &Element) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "Element" , js_name = slot)] #[doc = "Setter for the `slot` field of this object."] #[doc = ""] @@ -279,7 +279,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Element`*"] - pub fn get_attribute(this: &Element, name: &str) -> Option; + pub fn get_attribute(this: &Element, name: &str) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNS)] #[doc = "The `getAttributeNS()` method."] #[doc = ""] @@ -290,7 +290,7 @@ extern "C" { this: &Element, namespace: Option<&str>, local_name: &str, - ) -> Option; + ) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "Element" , js_name = getAttributeNames)] #[doc = "The `getAttributeNames()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ElementCreationOptions.rs b/crates/web-sys/src/features/gen_ElementCreationOptions.rs index d9d29bca20d..479004ff3ab 100644 --- a/crates/web-sys/src/features/gen_ElementCreationOptions.rs +++ b/crates/web-sys/src/features/gen_ElementCreationOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] #[wasm_bindgen(method, getter = "is")] - pub fn get_is(this: &ElementCreationOptions) -> Option; + pub fn get_is(this: &ElementCreationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `is` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] #[wasm_bindgen(method, getter = "pseudo")] - pub fn get_pseudo(this: &ElementCreationOptions) -> Option; + pub fn get_pseudo(this: &ElementCreationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `pseudo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] diff --git a/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs b/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs index 086ab7bc6d3..3e043c61657 100644 --- a/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs +++ b/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] #[wasm_bindgen(method, getter = "extends")] - pub fn get_extends(this: &ElementDefinitionOptions) -> Option; + pub fn get_extends(this: &ElementDefinitionOptions) -> Option<::alloc::string::String>; #[doc = "Change the `extends` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] diff --git a/crates/web-sys/src/features/gen_ErrorEvent.rs b/crates/web-sys/src/features/gen_ErrorEvent.rs index e9288b44779..9e6f3247952 100644 --- a/crates/web-sys/src/features/gen_ErrorEvent.rs +++ b/crates/web-sys/src/features/gen_ErrorEvent.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] - pub fn message(this: &ErrorEvent) -> String; + pub fn message(this: &ErrorEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = filename)] #[doc = "Getter for the `filename` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] - pub fn filename(this: &ErrorEvent) -> String; + pub fn filename(this: &ErrorEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "ErrorEvent" , js_name = lineno)] #[doc = "Getter for the `lineno` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ErrorEventInit.rs b/crates/web-sys/src/features/gen_ErrorEventInit.rs index da240ac4c11..b29df968ebf 100644 --- a/crates/web-sys/src/features/gen_ErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_ErrorEventInit.rs @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "filename")] - pub fn get_filename(this: &ErrorEventInit) -> Option; + pub fn get_filename(this: &ErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `filename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] @@ -84,7 +84,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] #[wasm_bindgen(method, getter = "message")] - pub fn get_message(this: &ErrorEventInit) -> Option; + pub fn get_message(this: &ErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] diff --git a/crates/web-sys/src/features/gen_Event.rs b/crates/web-sys/src/features/gen_Event.rs index d2e29c958a5..b3ede1b6707 100644 --- a/crates/web-sys/src/features/gen_Event.rs +++ b/crates/web-sys/src/features/gen_Event.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Event`*"] - pub fn type_(this: &Event) -> String; + pub fn type_(this: &Event) -> ::alloc::string::String; #[cfg(feature = "EventTarget")] # [wasm_bindgen (structural , method , getter , js_class = "Event" , js_name = target)] #[doc = "Getter for the `target` field of this object."] diff --git a/crates/web-sys/src/features/gen_EventSource.rs b/crates/web-sys/src/features/gen_EventSource.rs index 3a1ecfa27bc..c9a9abf49c4 100644 --- a/crates/web-sys/src/features/gen_EventSource.rs +++ b/crates/web-sys/src/features/gen_EventSource.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] - pub fn url(this: &EventSource) -> String; + pub fn url(this: &EventSource) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "EventSource" , js_name = withCredentials)] #[doc = "Getter for the `withCredentials` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Exception.rs b/crates/web-sys/src/features/gen_Exception.rs index d8a046ba1f9..da7168bf738 100644 --- a/crates/web-sys/src/features/gen_Exception.rs +++ b/crates/web-sys/src/features/gen_Exception.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] - pub fn name(this: &Exception) -> String; + pub fn name(this: &Exception) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] - pub fn message(this: &Exception) -> String; + pub fn message(this: &Exception) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = result)] #[doc = "Getter for the `result` field of this object."] #[doc = ""] @@ -39,7 +39,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] - pub fn filename(this: &Exception) -> String; + pub fn filename(this: &Exception) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Exception" , js_name = lineNumber)] #[doc = "Getter for the `lineNumber` field of this object."] #[doc = ""] @@ -67,5 +67,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/stack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Exception`*"] - pub fn stack(this: &Exception) -> String; + pub fn stack(this: &Exception) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs b/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs index a660231a1de..4cf19b6ac21 100644 --- a/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs +++ b/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs @@ -25,14 +25,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] - pub fn origin(this: &ExtendableMessageEvent) -> String; + pub fn origin(this: &ExtendableMessageEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = lastEventId)] #[doc = "Getter for the `lastEventId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/lastEventId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] - pub fn last_event_id(this: &ExtendableMessageEvent) -> String; + pub fn last_event_id(this: &ExtendableMessageEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = source)] #[doc = "Getter for the `source` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs b/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs index 745d1f041f8..ba05aee789e 100644 --- a/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs +++ b/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "lastEventId")] - pub fn get_last_event_id(this: &ExtendableMessageEventInit) -> Option; + pub fn get_last_event_id(this: &ExtendableMessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] #[wasm_bindgen(method, getter = "origin")] - pub fn get_origin(this: &ExtendableMessageEventInit) -> Option; + pub fn get_origin(this: &ExtendableMessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] diff --git a/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs b/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs index f1209b12a9e..84c0894867e 100644 --- a/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs +++ b/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, getter = "description")] - pub fn get_description(this: &FakePluginMimeEntry) -> Option; + pub fn get_description(this: &FakePluginMimeEntry) -> Option<::alloc::string::String>; #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, getter = "extension")] - pub fn get_extension(this: &FakePluginMimeEntry) -> Option; + pub fn get_extension(this: &FakePluginMimeEntry) -> Option<::alloc::string::String>; #[doc = "Change the `extension` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &FakePluginMimeEntry) -> String; + pub fn get_type(this: &FakePluginMimeEntry) -> ::alloc::string::String; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] diff --git a/crates/web-sys/src/features/gen_FakePluginTagInit.rs b/crates/web-sys/src/features/gen_FakePluginTagInit.rs index 43ab5067c1a..6dbd3fca415 100644 --- a/crates/web-sys/src/features/gen_FakePluginTagInit.rs +++ b/crates/web-sys/src/features/gen_FakePluginTagInit.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "description")] - pub fn get_description(this: &FakePluginTagInit) -> Option; + pub fn get_description(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "fileName")] - pub fn get_file_name(this: &FakePluginTagInit) -> Option; + pub fn get_file_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `fileName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "fullPath")] - pub fn get_full_path(this: &FakePluginTagInit) -> Option; + pub fn get_full_path(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `fullPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "handlerURI")] - pub fn get_handler_uri(this: &FakePluginTagInit) -> String; + pub fn get_handler_uri(this: &FakePluginTagInit) -> ::alloc::string::String; #[doc = "Change the `handlerURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &FakePluginTagInit) -> Option; + pub fn get_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "niceName")] - pub fn get_nice_name(this: &FakePluginTagInit) -> Option; + pub fn get_nice_name(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `niceName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] @@ -84,7 +84,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "sandboxScript")] - pub fn get_sandbox_script(this: &FakePluginTagInit) -> Option; + pub fn get_sandbox_script(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `sandboxScript` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] @@ -94,7 +94,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] #[wasm_bindgen(method, getter = "version")] - pub fn get_version(this: &FakePluginTagInit) -> Option; + pub fn get_version(this: &FakePluginTagInit) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] diff --git a/crates/web-sys/src/features/gen_FetchEvent.rs b/crates/web-sys/src/features/gen_FetchEvent.rs index c3aa140c988..46005abafe9 100644 --- a/crates/web-sys/src/features/gen_FetchEvent.rs +++ b/crates/web-sys/src/features/gen_FetchEvent.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/clientId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] - pub fn client_id(this: &FetchEvent) -> Option; + pub fn client_id(this: &FetchEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "FetchEvent" , js_name = isReload)] #[doc = "Getter for the `isReload` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FetchEventInit.rs b/crates/web-sys/src/features/gen_FetchEventInit.rs index 0041cb59450..f86eb2c96ee 100644 --- a/crates/web-sys/src/features/gen_FetchEventInit.rs +++ b/crates/web-sys/src/features/gen_FetchEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] #[wasm_bindgen(method, getter = "clientId")] - pub fn get_client_id(this: &FetchEventInit) -> Option; + pub fn get_client_id(this: &FetchEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `clientId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] diff --git a/crates/web-sys/src/features/gen_File.rs b/crates/web-sys/src/features/gen_File.rs index 61b67ec8d23..9b12f29675c 100644 --- a/crates/web-sys/src/features/gen_File.rs +++ b/crates/web-sys/src/features/gen_File.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `File`*"] - pub fn name(this: &File) -> String; + pub fn name(this: &File) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "File" , js_name = lastModified)] #[doc = "Getter for the `lastModified` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FilePickerAcceptType.rs b/crates/web-sys/src/features/gen_FilePickerAcceptType.rs index 63c010f5f8e..364fd367c5e 100644 --- a/crates/web-sys/src/features/gen_FilePickerAcceptType.rs +++ b/crates/web-sys/src/features/gen_FilePickerAcceptType.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "description")] - pub fn get_description(this: &FilePickerAcceptType) -> Option; + pub fn get_description(this: &FilePickerAcceptType) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `description` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FilePickerOptions.rs b/crates/web-sys/src/features/gen_FilePickerOptions.rs index deb857f4ce4..74b1bda1cb8 100644 --- a/crates/web-sys/src/features/gen_FilePickerOptions.rs +++ b/crates/web-sys/src/features/gen_FilePickerOptions.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &FilePickerOptions) -> Option; + pub fn get_id(this: &FilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FilePropertyBag.rs b/crates/web-sys/src/features/gen_FilePropertyBag.rs index 0b5c3ad8751..674fb53292d 100644 --- a/crates/web-sys/src/features/gen_FilePropertyBag.rs +++ b/crates/web-sys/src/features/gen_FilePropertyBag.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &FilePropertyBag) -> Option; + pub fn get_type(this: &FilePropertyBag) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] diff --git a/crates/web-sys/src/features/gen_FileReaderSync.rs b/crates/web-sys/src/features/gen_FileReaderSync.rs index 97987b4c7d1..5602ccd1bde 100644 --- a/crates/web-sys/src/features/gen_FileReaderSync.rs +++ b/crates/web-sys/src/features/gen_FileReaderSync.rs @@ -37,7 +37,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsBinaryString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] - pub fn read_as_binary_string(this: &FileReaderSync, blob: &Blob) -> Result; + pub fn read_as_binary_string( + this: &FileReaderSync, + blob: &Blob, + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsDataURL)] #[doc = "The `readAsDataURL()` method."] @@ -45,7 +48,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] - pub fn read_as_data_url(this: &FileReaderSync, blob: &Blob) -> Result; + pub fn read_as_data_url( + this: &FileReaderSync, + blob: &Blob, + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText)] #[doc = "The `readAsText()` method."] @@ -53,7 +59,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] - pub fn read_as_text(this: &FileReaderSync, blob: &Blob) -> Result; + pub fn read_as_text( + this: &FileReaderSync, + blob: &Blob, + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "Blob")] # [wasm_bindgen (catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText)] #[doc = "The `readAsText()` method."] @@ -65,5 +74,5 @@ extern "C" { this: &FileReaderSync, blob: &Blob, encoding: &str, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; } diff --git a/crates/web-sys/src/features/gen_FileSystem.rs b/crates/web-sys/src/features/gen_FileSystem.rs index 15eb5af8889..84ae4b461d2 100644 --- a/crates/web-sys/src/features/gen_FileSystem.rs +++ b/crates/web-sys/src/features/gen_FileSystem.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"] - pub fn name(this: &FileSystem) -> String; + pub fn name(this: &FileSystem) -> ::alloc::string::String; #[cfg(feature = "FileSystemDirectoryEntry")] # [wasm_bindgen (structural , method , getter , js_class = "FileSystem" , js_name = root)] #[doc = "Getter for the `root` field of this object."] diff --git a/crates/web-sys/src/features/gen_FileSystemEntry.rs b/crates/web-sys/src/features/gen_FileSystemEntry.rs index 885bf591573..835fef7e02f 100644 --- a/crates/web-sys/src/features/gen_FileSystemEntry.rs +++ b/crates/web-sys/src/features/gen_FileSystemEntry.rs @@ -32,14 +32,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] - pub fn name(this: &FileSystemEntry) -> String; + pub fn name(this: &FileSystemEntry) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = fullPath)] #[doc = "Getter for the `fullPath` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/fullPath)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] - pub fn full_path(this: &FileSystemEntry) -> String; + pub fn full_path(this: &FileSystemEntry) -> ::alloc::string::String; #[cfg(feature = "FileSystem")] # [wasm_bindgen (structural , method , getter , js_class = "FileSystemEntry" , js_name = filesystem)] #[doc = "Getter for the `filesystem` field of this object."] diff --git a/crates/web-sys/src/features/gen_FileSystemHandle.rs b/crates/web-sys/src/features/gen_FileSystemHandle.rs index b29a9d2eea0..ebfdfd64e38 100644 --- a/crates/web-sys/src/features/gen_FileSystemHandle.rs +++ b/crates/web-sys/src/features/gen_FileSystemHandle.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FileSystemHandle`*"] - pub fn name(this: &FileSystemHandle) -> String; + pub fn name(this: &FileSystemHandle) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "FileSystemHandle" , js_name = isSameEntry)] #[doc = "The `isSameEntry()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FontData.rs b/crates/web-sys/src/features/gen_FontData.rs index c1bebfa28a2..512ee1a219c 100644 --- a/crates/web-sys/src/features/gen_FontData.rs +++ b/crates/web-sys/src/features/gen_FontData.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn postscript_name(this: &FontData) -> String; + pub fn postscript_name(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "FontData" , js_name = fullName)] #[doc = "Getter for the `fullName` field of this object."] @@ -37,7 +37,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn full_name(this: &FontData) -> String; + pub fn full_name(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "FontData" , js_name = family)] #[doc = "Getter for the `family` field of this object."] @@ -48,7 +48,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn family(this: &FontData) -> String; + pub fn family(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "FontData" , js_name = style)] #[doc = "Getter for the `style` field of this object."] @@ -59,7 +59,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn style(this: &FontData) -> String; + pub fn style(this: &FontData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "FontData" , js_name = blob)] #[doc = "The `blob()` method."] diff --git a/crates/web-sys/src/features/gen_FontFace.rs b/crates/web-sys/src/features/gen_FontFace.rs index 0fc7544437f..88fd885ff89 100644 --- a/crates/web-sys/src/features/gen_FontFace.rs +++ b/crates/web-sys/src/features/gen_FontFace.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn family(this: &FontFace) -> String; + pub fn family(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = family)] #[doc = "Setter for the `family` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn style(this: &FontFace) -> String; + pub fn style(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = style)] #[doc = "Setter for the `style` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn weight(this: &FontFace) -> String; + pub fn weight(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = weight)] #[doc = "Setter for the `weight` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn stretch(this: &FontFace) -> String; + pub fn stretch(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = stretch)] #[doc = "Setter for the `stretch` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn unicode_range(this: &FontFace) -> String; + pub fn unicode_range(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = unicodeRange)] #[doc = "Setter for the `unicodeRange` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn variant(this: &FontFace) -> String; + pub fn variant(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = variant)] #[doc = "Setter for the `variant` field of this object."] #[doc = ""] @@ -102,7 +102,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn feature_settings(this: &FontFace) -> String; + pub fn feature_settings(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = featureSettings)] #[doc = "Setter for the `featureSettings` field of this object."] #[doc = ""] @@ -116,7 +116,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variationSettings)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn variation_settings(this: &FontFace) -> String; + pub fn variation_settings(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = variationSettings)] #[doc = "Setter for the `variationSettings` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] - pub fn display(this: &FontFace) -> String; + pub fn display(this: &FontFace) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "FontFace" , js_name = display)] #[doc = "Setter for the `display` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_FontFaceDescriptors.rs b/crates/web-sys/src/features/gen_FontFaceDescriptors.rs index 3598c4f11dd..c9a1690045f 100644 --- a/crates/web-sys/src/features/gen_FontFaceDescriptors.rs +++ b/crates/web-sys/src/features/gen_FontFaceDescriptors.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "display")] - pub fn get_display(this: &FontFaceDescriptors) -> Option; + pub fn get_display(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `display` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "featureSettings")] - pub fn get_feature_settings(this: &FontFaceDescriptors) -> Option; + pub fn get_feature_settings(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `featureSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "stretch")] - pub fn get_stretch(this: &FontFaceDescriptors) -> Option; + pub fn get_stretch(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `stretch` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "style")] - pub fn get_style(this: &FontFaceDescriptors) -> Option; + pub fn get_style(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `style` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "unicodeRange")] - pub fn get_unicode_range(this: &FontFaceDescriptors) -> Option; + pub fn get_unicode_range(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `unicodeRange` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "variant")] - pub fn get_variant(this: &FontFaceDescriptors) -> Option; + pub fn get_variant(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `variant` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "variationSettings")] - pub fn get_variation_settings(this: &FontFaceDescriptors) -> Option; + pub fn get_variation_settings(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `variationSettings` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] @@ -84,7 +84,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] #[wasm_bindgen(method, getter = "weight")] - pub fn get_weight(this: &FontFaceDescriptors) -> Option; + pub fn get_weight(this: &FontFaceDescriptors) -> Option<::alloc::string::String>; #[doc = "Change the `weight` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] diff --git a/crates/web-sys/src/features/gen_Gamepad.rs b/crates/web-sys/src/features/gen_Gamepad.rs index cb20fdf2e18..1347d62a6c9 100644 --- a/crates/web-sys/src/features/gen_Gamepad.rs +++ b/crates/web-sys/src/features/gen_Gamepad.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] - pub fn id(this: &Gamepad) -> String; + pub fn id(this: &Gamepad) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Gamepad" , js_name = index)] #[doc = "Getter for the `index` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GetUserMediaRequest.rs b/crates/web-sys/src/features/gen_GetUserMediaRequest.rs index 64718909a3b..94b9b1dbadb 100644 --- a/crates/web-sys/src/features/gen_GetUserMediaRequest.rs +++ b/crates/web-sys/src/features/gen_GetUserMediaRequest.rs @@ -32,21 +32,21 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/callID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] - pub fn call_id(this: &GetUserMediaRequest) -> String; + pub fn call_id(this: &GetUserMediaRequest) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = rawID)] #[doc = "Getter for the `rawID` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/rawID)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] - pub fn raw_id(this: &GetUserMediaRequest) -> String; + pub fn raw_id(this: &GetUserMediaRequest) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = mediaSource)] #[doc = "Getter for the `mediaSource` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/mediaSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] - pub fn media_source(this: &GetUserMediaRequest) -> String; + pub fn media_source(this: &GetUserMediaRequest) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "GetUserMediaRequest" , js_name = isSecure)] #[doc = "Getter for the `isSecure` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuAdapterInfo.rs b/crates/web-sys/src/features/gen_GpuAdapterInfo.rs index b2f41510943..8152dc1f896 100644 --- a/crates/web-sys/src/features/gen_GpuAdapterInfo.rs +++ b/crates/web-sys/src/features/gen_GpuAdapterInfo.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn vendor(this: &GpuAdapterInfo) -> String; + pub fn vendor(this: &GpuAdapterInfo) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = architecture)] #[doc = "Getter for the `architecture` field of this object."] @@ -37,7 +37,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn architecture(this: &GpuAdapterInfo) -> String; + pub fn architecture(this: &GpuAdapterInfo) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = device)] #[doc = "Getter for the `device` field of this object."] @@ -48,7 +48,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn device(this: &GpuAdapterInfo) -> String; + pub fn device(this: &GpuAdapterInfo) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "GPUAdapterInfo" , js_name = description)] #[doc = "Getter for the `description` field of this object."] @@ -59,5 +59,5 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn description(this: &GpuAdapterInfo) -> String; + pub fn description(this: &GpuAdapterInfo) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_GpuBindGroup.rs b/crates/web-sys/src/features/gen_GpuBindGroup.rs index 149b5191dea..44bd4e3250f 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroup.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroup.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuBindGroup) -> String; + pub fn label(this: &GpuBindGroup) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroup" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs b/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs index 9f1ad18daf3..9286c1e5bc7 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuBindGroupDescriptor) -> Option; + pub fn get_label(this: &GpuBindGroupDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs index 40e00c0f142..a49305da88d 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuBindGroupLayout) -> String; + pub fn label(this: &GpuBindGroupLayout) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUBindGroupLayout" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs index b7747d5d756..e79a77fa15e 100644 --- a/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuBindGroupLayoutDescriptor) -> Option; + pub fn get_label(this: &GpuBindGroupLayoutDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuBuffer.rs b/crates/web-sys/src/features/gen_GpuBuffer.rs index 2b51482df29..b06cf363cdb 100644 --- a/crates/web-sys/src/features/gen_GpuBuffer.rs +++ b/crates/web-sys/src/features/gen_GpuBuffer.rs @@ -60,7 +60,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuBuffer) -> String; + pub fn label(this: &GpuBuffer) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUBuffer" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs b/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs index 536aa9c409d..47db1c0629f 100644 --- a/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuBufferDescriptor) -> Option; + pub fn get_label(this: &GpuBufferDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCommandBuffer.rs b/crates/web-sys/src/features/gen_GpuCommandBuffer.rs index d7054cece23..f5c24baa66a 100644 --- a/crates/web-sys/src/features/gen_GpuCommandBuffer.rs +++ b/crates/web-sys/src/features/gen_GpuCommandBuffer.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuCommandBuffer) -> String; + pub fn label(this: &GpuCommandBuffer) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandBuffer" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs b/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs index af0d4b1455b..1db6b1097db 100644 --- a/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuCommandBufferDescriptor) -> Option; + pub fn get_label(this: &GpuCommandBufferDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCommandEncoder.rs b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs index 6b1ceef6815..7fb2fb756a2 100644 --- a/crates/web-sys/src/features/gen_GpuCommandEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuCommandEncoder) -> String; + pub fn label(this: &GpuCommandEncoder) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs b/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs index e883bd9c31e..51632a57feb 100644 --- a/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuCommandEncoderDescriptor) -> Option; + pub fn get_label(this: &GpuCommandEncoderDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuCompilationMessage.rs b/crates/web-sys/src/features/gen_GpuCompilationMessage.rs index 227fa2314d6..83c01717793 100644 --- a/crates/web-sys/src/features/gen_GpuCompilationMessage.rs +++ b/crates/web-sys/src/features/gen_GpuCompilationMessage.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn message(this: &GpuCompilationMessage) -> String; + pub fn message(this: &GpuCompilationMessage) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "GpuCompilationMessageType")] # [wasm_bindgen (structural , method , getter , js_class = "GPUCompilationMessage" , js_name = type)] diff --git a/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs b/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs index 0da84742aa8..e7ba89476d1 100644 --- a/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuComputePassDescriptor) -> Option; + pub fn get_label(this: &GpuComputePassDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs b/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs index 9542ee8a414..7f9daed5033 100644 --- a/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuComputePassEncoder) -> String; + pub fn label(this: &GpuComputePassEncoder) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuComputePipeline.rs b/crates/web-sys/src/features/gen_GpuComputePipeline.rs index cb6d1728344..64f33cd44da 100644 --- a/crates/web-sys/src/features/gen_GpuComputePipeline.rs +++ b/crates/web-sys/src/features/gen_GpuComputePipeline.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuComputePipeline) -> String; + pub fn label(this: &GpuComputePipeline) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUComputePipeline" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs b/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs index 0dc1e1a0423..ad3e703eeec 100644 --- a/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuComputePipelineDescriptor) -> Option; + pub fn get_label(this: &GpuComputePipelineDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuDevice.rs b/crates/web-sys/src/features/gen_GpuDevice.rs index 382f67eaceb..5ad2483befc 100644 --- a/crates/web-sys/src/features/gen_GpuDevice.rs +++ b/crates/web-sys/src/features/gen_GpuDevice.rs @@ -95,7 +95,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuDevice) -> String; + pub fn label(this: &GpuDevice) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUDevice" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs b/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs index b6090cf7454..dd7c58ffca3 100644 --- a/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuDeviceDescriptor) -> Option; + pub fn get_label(this: &GpuDeviceDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs b/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs index 2e5e15a85e3..2929b7b4acb 100644 --- a/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs +++ b/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs @@ -38,5 +38,5 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn message(this: &GpuDeviceLostInfo) -> String; + pub fn message(this: &GpuDeviceLostInfo) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_GpuError.rs b/crates/web-sys/src/features/gen_GpuError.rs index 1d089421591..8354754aeda 100644 --- a/crates/web-sys/src/features/gen_GpuError.rs +++ b/crates/web-sys/src/features/gen_GpuError.rs @@ -26,5 +26,5 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn message(this: &GpuError) -> String; + pub fn message(this: &GpuError) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_GpuExternalTexture.rs b/crates/web-sys/src/features/gen_GpuExternalTexture.rs index 5aea010a4eb..011cc5be316 100644 --- a/crates/web-sys/src/features/gen_GpuExternalTexture.rs +++ b/crates/web-sys/src/features/gen_GpuExternalTexture.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuExternalTexture) -> String; + pub fn label(this: &GpuExternalTexture) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUExternalTexture" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs b/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs index 913093af5c6..d63e3ca9ffd 100644 --- a/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuExternalTextureDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuExternalTextureDescriptor) -> Option; + pub fn get_label(this: &GpuExternalTextureDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuFragmentState.rs b/crates/web-sys/src/features/gen_GpuFragmentState.rs index 200758fd892..6dd9656413b 100644 --- a/crates/web-sys/src/features/gen_GpuFragmentState.rs +++ b/crates/web-sys/src/features/gen_GpuFragmentState.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] - pub fn get_entry_point(this: &GpuFragmentState) -> Option; + pub fn get_entry_point(this: &GpuFragmentState) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entryPoint` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs b/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs index 37e3d9fa7b0..c14221bc4c3 100644 --- a/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs +++ b/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuObjectDescriptorBase) -> Option; + pub fn get_label(this: &GpuObjectDescriptorBase) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs b/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs index 05a2206a33c..6f3b7a5746f 100644 --- a/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs +++ b/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuPipelineDescriptorBase) -> Option; + pub fn get_label(this: &GpuPipelineDescriptorBase) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuPipelineLayout.rs b/crates/web-sys/src/features/gen_GpuPipelineLayout.rs index b2ca2d974d4..339e6d3582a 100644 --- a/crates/web-sys/src/features/gen_GpuPipelineLayout.rs +++ b/crates/web-sys/src/features/gen_GpuPipelineLayout.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuPipelineLayout) -> String; + pub fn label(this: &GpuPipelineLayout) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUPipelineLayout" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs b/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs index cff6b220139..e62aecd6cc7 100644 --- a/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuPipelineLayoutDescriptor) -> Option; + pub fn get_label(this: &GpuPipelineLayoutDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuProgrammableStage.rs b/crates/web-sys/src/features/gen_GpuProgrammableStage.rs index 164b2e2f701..0daa32340d8 100644 --- a/crates/web-sys/src/features/gen_GpuProgrammableStage.rs +++ b/crates/web-sys/src/features/gen_GpuProgrammableStage.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] - pub fn get_entry_point(this: &GpuProgrammableStage) -> Option; + pub fn get_entry_point(this: &GpuProgrammableStage) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entryPoint` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuQuerySet.rs b/crates/web-sys/src/features/gen_GpuQuerySet.rs index 6bce0840c99..0d08c58eb33 100644 --- a/crates/web-sys/src/features/gen_GpuQuerySet.rs +++ b/crates/web-sys/src/features/gen_GpuQuerySet.rs @@ -49,7 +49,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuQuerySet) -> String; + pub fn label(this: &GpuQuerySet) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUQuerySet" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs b/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs index 36f3383a7e8..f853728775d 100644 --- a/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuQuerySetDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuQuerySetDescriptor) -> Option; + pub fn get_label(this: &GpuQuerySetDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuQueue.rs b/crates/web-sys/src/features/gen_GpuQueue.rs index 116378e02ea..e33c2394648 100644 --- a/crates/web-sys/src/features/gen_GpuQueue.rs +++ b/crates/web-sys/src/features/gen_GpuQueue.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuQueue) -> String; + pub fn label(this: &GpuQueue) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUQueue" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuQueueDescriptor.rs b/crates/web-sys/src/features/gen_GpuQueueDescriptor.rs index e07e624f8a5..c7d599625bc 100644 --- a/crates/web-sys/src/features/gen_GpuQueueDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuQueueDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuQueueDescriptor) -> Option; + pub fn get_label(this: &GpuQueueDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundle.rs b/crates/web-sys/src/features/gen_GpuRenderBundle.rs index ff40728a67d..4871f17f0a8 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundle.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundle.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuRenderBundle) -> String; + pub fn label(this: &GpuRenderBundle) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundle" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs index a250f0fe19f..ac6b825b6a3 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuRenderBundleDescriptor) -> Option; + pub fn get_label(this: &GpuRenderBundleDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs b/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs index b57bec64474..de06739ca0f 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuRenderBundleEncoder) -> String; + pub fn label(this: &GpuRenderBundleEncoder) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs index 895ff703e51..0f9da7016bc 100644 --- a/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuRenderBundleEncoderDescriptor) -> Option; + pub fn get_label(this: &GpuRenderBundleEncoderDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs index 4d388ca356e..13cdb794998 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuRenderPassDescriptor) -> Option; + pub fn get_label(this: &GpuRenderPassDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs b/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs index cb1e6499c26..b8451ad632d 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuRenderPassEncoder) -> String; + pub fn label(this: &GpuRenderPassEncoder) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs b/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs index 7977ece02ea..2d1b53744c5 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPassLayout.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuRenderPassLayout) -> Option; + pub fn get_label(this: &GpuRenderPassLayout) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRenderPipeline.rs b/crates/web-sys/src/features/gen_GpuRenderPipeline.rs index b4f94c5e69d..357a4107aaf 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPipeline.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPipeline.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuRenderPipeline) -> String; + pub fn label(this: &GpuRenderPipeline) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPipeline" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs index 5db5163d669..d9fe1b72344 100644 --- a/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuRenderPipelineDescriptor) -> Option; + pub fn get_label(this: &GpuRenderPipelineDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs index 68627083d06..cba26922c2b 100644 --- a/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs +++ b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "featureLevel")] - pub fn get_feature_level(this: &GpuRequestAdapterOptions) -> Option; + pub fn get_feature_level(this: &GpuRequestAdapterOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `featureLevel` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuSampler.rs b/crates/web-sys/src/features/gen_GpuSampler.rs index c332f4deca7..21a43a1c82d 100644 --- a/crates/web-sys/src/features/gen_GpuSampler.rs +++ b/crates/web-sys/src/features/gen_GpuSampler.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuSampler) -> String; + pub fn label(this: &GpuSampler) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUSampler" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs b/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs index c8dcfc7f50f..6165b01c039 100644 --- a/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuSamplerDescriptor) -> Option; + pub fn get_label(this: &GpuSamplerDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuShaderModule.rs b/crates/web-sys/src/features/gen_GpuShaderModule.rs index 8bb9cab8cbf..caa0cfba4ff 100644 --- a/crates/web-sys/src/features/gen_GpuShaderModule.rs +++ b/crates/web-sys/src/features/gen_GpuShaderModule.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuShaderModule) -> String; + pub fn label(this: &GpuShaderModule) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUShaderModule" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuShaderModuleCompilationHint.rs b/crates/web-sys/src/features/gen_GpuShaderModuleCompilationHint.rs index f2c1369207e..69108e9b950 100644 --- a/crates/web-sys/src/features/gen_GpuShaderModuleCompilationHint.rs +++ b/crates/web-sys/src/features/gen_GpuShaderModuleCompilationHint.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] - pub fn get_entry_point(this: &GpuShaderModuleCompilationHint) -> String; + pub fn get_entry_point(this: &GpuShaderModuleCompilationHint) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entryPoint` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs b/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs index b1fc639181b..b6c3a7b2433 100644 --- a/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuShaderModuleDescriptor) -> Option; + pub fn get_label(this: &GpuShaderModuleDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "code")] - pub fn get_code(this: &GpuShaderModuleDescriptor) -> String; + pub fn get_code(this: &GpuShaderModuleDescriptor) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `code` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuTexture.rs b/crates/web-sys/src/features/gen_GpuTexture.rs index d1d72cd0b65..519516bbbf7 100644 --- a/crates/web-sys/src/features/gen_GpuTexture.rs +++ b/crates/web-sys/src/features/gen_GpuTexture.rs @@ -116,7 +116,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuTexture) -> String; + pub fn label(this: &GpuTexture) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUTexture" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs b/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs index ff3a096540f..c889e583bc1 100644 --- a/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuTextureDescriptor) -> Option; + pub fn get_label(this: &GpuTextureDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuTextureView.rs b/crates/web-sys/src/features/gen_GpuTextureView.rs index c15f9650457..1fcc6ff6cf5 100644 --- a/crates/web-sys/src/features/gen_GpuTextureView.rs +++ b/crates/web-sys/src/features/gen_GpuTextureView.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn label(this: &GpuTextureView) -> String; + pub fn label(this: &GpuTextureView) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "GPUTextureView" , js_name = label)] #[doc = "Setter for the `label` field of this object."] diff --git a/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs b/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs index a618b9b2f96..6668927eee0 100644 --- a/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs +++ b/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &GpuTextureViewDescriptor) -> Option; + pub fn get_label(this: &GpuTextureViewDescriptor) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_GpuVertexState.rs b/crates/web-sys/src/features/gen_GpuVertexState.rs index 5f8901ee638..f2dc669628a 100644 --- a/crates/web-sys/src/features/gen_GpuVertexState.rs +++ b/crates/web-sys/src/features/gen_GpuVertexState.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "entryPoint")] - pub fn get_entry_point(this: &GpuVertexState) -> Option; + pub fn get_entry_point(this: &GpuVertexState) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `entryPoint` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HashChangeEvent.rs b/crates/web-sys/src/features/gen_HashChangeEvent.rs index a697b2bd9bf..9e538f081cc 100644 --- a/crates/web-sys/src/features/gen_HashChangeEvent.rs +++ b/crates/web-sys/src/features/gen_HashChangeEvent.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/oldURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] - pub fn old_url(this: &HashChangeEvent) -> String; + pub fn old_url(this: &HashChangeEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "HashChangeEvent" , js_name = newURL)] #[doc = "Getter for the `newURL` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/newURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] - pub fn new_url(this: &HashChangeEvent) -> String; + pub fn new_url(this: &HashChangeEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")] #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HashChangeEventInit.rs b/crates/web-sys/src/features/gen_HashChangeEventInit.rs index a4b951d4c92..90bf0ee6b35 100644 --- a/crates/web-sys/src/features/gen_HashChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_HashChangeEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, getter = "newURL")] - pub fn get_new_url(this: &HashChangeEventInit) -> Option; + pub fn get_new_url(this: &HashChangeEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `newURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] #[wasm_bindgen(method, getter = "oldURL")] - pub fn get_old_url(this: &HashChangeEventInit) -> Option; + pub fn get_old_url(this: &HashChangeEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `oldURL` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] diff --git a/crates/web-sys/src/features/gen_Headers.rs b/crates/web-sys/src/features/gen_Headers.rs index 28556d47b01..bdf068dde31 100644 --- a/crates/web-sys/src/features/gen_Headers.rs +++ b/crates/web-sys/src/features/gen_Headers.rs @@ -76,7 +76,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Headers`*"] - pub fn get(this: &Headers, name: &str) -> Result, JsValue>; + pub fn get(this: &Headers, name: &str) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Headers" , js_name = has)] #[doc = "The `has()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HidDevice.rs b/crates/web-sys/src/features/gen_HidDevice.rs index 51bc70e5f2f..8a11a1bf741 100644 --- a/crates/web-sys/src/features/gen_HidDevice.rs +++ b/crates/web-sys/src/features/gen_HidDevice.rs @@ -81,7 +81,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn product_name(this: &HidDevice) -> String; + pub fn product_name(this: &HidDevice) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "HIDDevice" , js_name = collections)] #[doc = "Getter for the `collections` field of this object."] diff --git a/crates/web-sys/src/features/gen_HitRegionOptions.rs b/crates/web-sys/src/features/gen_HitRegionOptions.rs index fa0ea9ed78e..c8e6fbdd5c7 100644 --- a/crates/web-sys/src/features/gen_HitRegionOptions.rs +++ b/crates/web-sys/src/features/gen_HitRegionOptions.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &HitRegionOptions) -> Option; + pub fn get_id(this: &HitRegionOptions) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] diff --git a/crates/web-sys/src/features/gen_HkdfParams.rs b/crates/web-sys/src/features/gen_HkdfParams.rs index e0b6f86a332..bd0211c11d1 100644 --- a/crates/web-sys/src/features/gen_HkdfParams.rs +++ b/crates/web-sys/src/features/gen_HkdfParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &HkdfParams) -> String; + pub fn get_name(this: &HkdfParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] diff --git a/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs b/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs index 40047b3e4a9..e8968782451 100644 --- a/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs +++ b/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &HmacDerivedKeyParams) -> String; + pub fn get_name(this: &HmacDerivedKeyParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] diff --git a/crates/web-sys/src/features/gen_HmacImportParams.rs b/crates/web-sys/src/features/gen_HmacImportParams.rs index 685b5ff5e7a..cb02e69a836 100644 --- a/crates/web-sys/src/features/gen_HmacImportParams.rs +++ b/crates/web-sys/src/features/gen_HmacImportParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &HmacImportParams) -> String; + pub fn get_name(this: &HmacImportParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] diff --git a/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs b/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs index de8a8cac708..8982dde472b 100644 --- a/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &HmacKeyAlgorithm) -> String; + pub fn get_name(this: &HmacKeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] diff --git a/crates/web-sys/src/features/gen_HmacKeyGenParams.rs b/crates/web-sys/src/features/gen_HmacKeyGenParams.rs index 7363659e1de..d051e11f672 100644 --- a/crates/web-sys/src/features/gen_HmacKeyGenParams.rs +++ b/crates/web-sys/src/features/gen_HmacKeyGenParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &HmacKeyGenParams) -> String; + pub fn get_name(this: &HmacKeyGenParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] diff --git a/crates/web-sys/src/features/gen_HtmlAnchorElement.rs b/crates/web-sys/src/features/gen_HtmlAnchorElement.rs index 03fb3e54d41..6fafd95835b 100644 --- a/crates/web-sys/src/features/gen_HtmlAnchorElement.rs +++ b/crates/web-sys/src/features/gen_HtmlAnchorElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn target(this: &HtmlAnchorElement) -> String; + pub fn target(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn download(this: &HtmlAnchorElement) -> String; + pub fn download(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = download)] #[doc = "Setter for the `download` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn ping(this: &HtmlAnchorElement) -> String; + pub fn ping(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = ping)] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn rel(this: &HtmlAnchorElement) -> String; + pub fn rel(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn referrer_policy(this: &HtmlAnchorElement) -> String; + pub fn referrer_policy(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] @@ -96,7 +96,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn hreflang(this: &HtmlAnchorElement) -> String; + pub fn hreflang(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hreflang)] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] @@ -110,7 +110,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn type_(this: &HtmlAnchorElement) -> String; + pub fn type_(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -124,7 +124,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn text(this: &HtmlAnchorElement) -> Result; + pub fn text(this: &HtmlAnchorElement) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLAnchorElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] @@ -138,7 +138,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn coords(this: &HtmlAnchorElement) -> String; + pub fn coords(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = coords)] #[doc = "Setter for the `coords` field of this object."] #[doc = ""] @@ -152,7 +152,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn charset(this: &HtmlAnchorElement) -> String; + pub fn charset(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = charset)] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] @@ -166,7 +166,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn name(this: &HtmlAnchorElement) -> String; + pub fn name(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -180,7 +180,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rev)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn rev(this: &HtmlAnchorElement) -> String; + pub fn rev(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rev)] #[doc = "Setter for the `rev` field of this object."] #[doc = ""] @@ -194,7 +194,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/shape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn shape(this: &HtmlAnchorElement) -> String; + pub fn shape(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = shape)] #[doc = "Setter for the `shape` field of this object."] #[doc = ""] @@ -208,7 +208,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn href(this: &HtmlAnchorElement) -> String; + pub fn href(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] @@ -222,14 +222,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn origin(this: &HtmlAnchorElement) -> String; + pub fn origin(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAnchorElement" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn protocol(this: &HtmlAnchorElement) -> String; + pub fn protocol(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] @@ -243,7 +243,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn username(this: &HtmlAnchorElement) -> String; + pub fn username(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = username)] #[doc = "Setter for the `username` field of this object."] #[doc = ""] @@ -257,7 +257,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn password(this: &HtmlAnchorElement) -> String; + pub fn password(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = password)] #[doc = "Setter for the `password` field of this object."] #[doc = ""] @@ -271,7 +271,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn host(this: &HtmlAnchorElement) -> String; + pub fn host(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] @@ -285,7 +285,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn hostname(this: &HtmlAnchorElement) -> String; + pub fn hostname(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] @@ -299,7 +299,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn port(this: &HtmlAnchorElement) -> String; + pub fn port(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] @@ -313,7 +313,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn pathname(this: &HtmlAnchorElement) -> String; + pub fn pathname(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] @@ -327,7 +327,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn search(this: &HtmlAnchorElement) -> String; + pub fn search(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] @@ -341,7 +341,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] - pub fn hash(this: &HtmlAnchorElement) -> String; + pub fn hash(this: &HtmlAnchorElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlAreaElement.rs b/crates/web-sys/src/features/gen_HtmlAreaElement.rs index 4b8560faf65..2e4e2eee37e 100644 --- a/crates/web-sys/src/features/gen_HtmlAreaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlAreaElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn alt(this: &HtmlAreaElement) -> String; + pub fn alt(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = alt)] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/coords)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn coords(this: &HtmlAreaElement) -> String; + pub fn coords(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = coords)] #[doc = "Setter for the `coords` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/shape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn shape(this: &HtmlAreaElement) -> String; + pub fn shape(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = shape)] #[doc = "Setter for the `shape` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn target(this: &HtmlAreaElement) -> String; + pub fn target(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn download(this: &HtmlAreaElement) -> String; + pub fn download(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = download)] #[doc = "Setter for the `download` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn ping(this: &HtmlAreaElement) -> String; + pub fn ping(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = ping)] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] @@ -102,7 +102,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn rel(this: &HtmlAreaElement) -> String; + pub fn rel(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] @@ -116,7 +116,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn referrer_policy(this: &HtmlAreaElement) -> String; + pub fn referrer_policy(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] @@ -152,7 +152,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn href(this: &HtmlAreaElement) -> String; + pub fn href(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] @@ -166,14 +166,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn origin(this: &HtmlAreaElement) -> String; + pub fn origin(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLAreaElement" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn protocol(this: &HtmlAreaElement) -> String; + pub fn protocol(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] @@ -187,7 +187,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn username(this: &HtmlAreaElement) -> String; + pub fn username(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = username)] #[doc = "Setter for the `username` field of this object."] #[doc = ""] @@ -201,7 +201,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn password(this: &HtmlAreaElement) -> String; + pub fn password(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = password)] #[doc = "Setter for the `password` field of this object."] #[doc = ""] @@ -215,7 +215,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn host(this: &HtmlAreaElement) -> String; + pub fn host(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] @@ -229,7 +229,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn hostname(this: &HtmlAreaElement) -> String; + pub fn hostname(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] @@ -243,7 +243,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn port(this: &HtmlAreaElement) -> String; + pub fn port(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] @@ -257,7 +257,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn pathname(this: &HtmlAreaElement) -> String; + pub fn pathname(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] @@ -271,7 +271,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn search(this: &HtmlAreaElement) -> String; + pub fn search(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] @@ -285,7 +285,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] - pub fn hash(this: &HtmlAreaElement) -> String; + pub fn hash(this: &HtmlAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLAreaElement" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlBaseElement.rs b/crates/web-sys/src/features/gen_HtmlBaseElement.rs index 7c495bd1ab9..4f4aadc75a7 100644 --- a/crates/web-sys/src/features/gen_HtmlBaseElement.rs +++ b/crates/web-sys/src/features/gen_HtmlBaseElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] - pub fn href(this: &HtmlBaseElement) -> String; + pub fn href(this: &HtmlBaseElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBaseElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] - pub fn target(this: &HtmlBaseElement) -> String; + pub fn target(this: &HtmlBaseElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBaseElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlBodyElement.rs b/crates/web-sys/src/features/gen_HtmlBodyElement.rs index 9f1e6ed6bbc..9b902aeb351 100644 --- a/crates/web-sys/src/features/gen_HtmlBodyElement.rs +++ b/crates/web-sys/src/features/gen_HtmlBodyElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] - pub fn text(this: &HtmlBodyElement) -> String; + pub fn text(this: &HtmlBodyElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/link)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] - pub fn link(this: &HtmlBodyElement) -> String; + pub fn link(this: &HtmlBodyElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = link)] #[doc = "Setter for the `link` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/vLink)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] - pub fn v_link(this: &HtmlBodyElement) -> String; + pub fn v_link(this: &HtmlBodyElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = vLink)] #[doc = "Setter for the `vLink` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/aLink)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] - pub fn a_link(this: &HtmlBodyElement) -> String; + pub fn a_link(this: &HtmlBodyElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = aLink)] #[doc = "Setter for the `aLink` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] - pub fn bg_color(this: &HtmlBodyElement) -> String; + pub fn bg_color(this: &HtmlBodyElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/background)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] - pub fn background(this: &HtmlBodyElement) -> String; + pub fn background(this: &HtmlBodyElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBodyElement" , js_name = background)] #[doc = "Setter for the `background` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlBrElement.rs b/crates/web-sys/src/features/gen_HtmlBrElement.rs index 0c239d02f6f..4e882f6f2eb 100644 --- a/crates/web-sys/src/features/gen_HtmlBrElement.rs +++ b/crates/web-sys/src/features/gen_HtmlBrElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement/clear)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] - pub fn clear(this: &HtmlBrElement) -> String; + pub fn clear(this: &HtmlBrElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLBRElement" , js_name = clear)] #[doc = "Setter for the `clear` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlButtonElement.rs b/crates/web-sys/src/features/gen_HtmlButtonElement.rs index b5c9fef4aac..047b47bfdb5 100644 --- a/crates/web-sys/src/features/gen_HtmlButtonElement.rs +++ b/crates/web-sys/src/features/gen_HtmlButtonElement.rs @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn form_action(this: &HtmlButtonElement) -> String; + pub fn form_action(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formAction)] #[doc = "Setter for the `formAction` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn form_enctype(this: &HtmlButtonElement) -> String; + pub fn form_enctype(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formEnctype)] #[doc = "Setter for the `formEnctype` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn form_method(this: &HtmlButtonElement) -> String; + pub fn form_method(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formMethod)] #[doc = "Setter for the `formMethod` field of this object."] #[doc = ""] @@ -116,7 +116,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn form_target(this: &HtmlButtonElement) -> String; + pub fn form_target(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = formTarget)] #[doc = "Setter for the `formTarget` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn name(this: &HtmlButtonElement) -> String; + pub fn name(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -144,7 +144,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn type_(this: &HtmlButtonElement) -> String; + pub fn type_(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -158,7 +158,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn value(this: &HtmlButtonElement) -> String; + pub fn value(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -187,7 +187,8 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn validation_message(this: &HtmlButtonElement) -> Result; + pub fn validation_message(this: &HtmlButtonElement) + -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLButtonElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] @@ -216,7 +217,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/popoverTargetAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] - pub fn popover_target_action(this: &HtmlButtonElement) -> String; + pub fn popover_target_action(this: &HtmlButtonElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLButtonElement" , js_name = popoverTargetAction)] #[doc = "Setter for the `popoverTargetAction` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlCanvasElement.rs b/crates/web-sys/src/features/gen_HtmlCanvasElement.rs index 5b35060ab53..542e1dbf7ef 100644 --- a/crates/web-sys/src/features/gen_HtmlCanvasElement.rs +++ b/crates/web-sys/src/features/gen_HtmlCanvasElement.rs @@ -116,14 +116,17 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] - pub fn to_data_url(this: &HtmlCanvasElement) -> Result; + pub fn to_data_url(this: &HtmlCanvasElement) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] #[doc = "The `toDataURL()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] - pub fn to_data_url_with_type(this: &HtmlCanvasElement, type_: &str) -> Result; + pub fn to_data_url_with_type( + this: &HtmlCanvasElement, + type_: &str, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL)] #[doc = "The `toDataURL()` method."] #[doc = ""] @@ -134,7 +137,7 @@ extern "C" { this: &HtmlCanvasElement, type_: &str, encoder_options: &::wasm_bindgen::JsValue, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "OffscreenCanvas")] # [wasm_bindgen (catch , method , structural , js_class = "HTMLCanvasElement" , js_name = transferControlToOffscreen)] #[doc = "The `transferControlToOffscreen()` method."] diff --git a/crates/web-sys/src/features/gen_HtmlDataElement.rs b/crates/web-sys/src/features/gen_HtmlDataElement.rs index 07d7b8b800a..c9569fbb6c6 100644 --- a/crates/web-sys/src/features/gen_HtmlDataElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDataElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] - pub fn value(this: &HtmlDataElement) -> String; + pub fn value(this: &HtmlDataElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDataElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlDialogElement.rs b/crates/web-sys/src/features/gen_HtmlDialogElement.rs index 3df73705190..100d491d135 100644 --- a/crates/web-sys/src/features/gen_HtmlDialogElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDialogElement.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] - pub fn return_value(this: &HtmlDialogElement) -> String; + pub fn return_value(this: &HtmlDialogElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDialogElement" , js_name = returnValue)] #[doc = "Setter for the `returnValue` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlDivElement.rs b/crates/web-sys/src/features/gen_HtmlDivElement.rs index e293b01448c..90faef9902d 100644 --- a/crates/web-sys/src/features/gen_HtmlDivElement.rs +++ b/crates/web-sys/src/features/gen_HtmlDivElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] - pub fn align(this: &HtmlDivElement) -> String; + pub fn align(this: &HtmlDivElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDivElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlDocument.rs b/crates/web-sys/src/features/gen_HtmlDocument.rs index 8d16141c5dd..fb18ad852a6 100644 --- a/crates/web-sys/src/features/gen_HtmlDocument.rs +++ b/crates/web-sys/src/features/gen_HtmlDocument.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn domain(this: &HtmlDocument) -> String; + pub fn domain(this: &HtmlDocument) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = domain)] #[doc = "Setter for the `domain` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/cookie)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn cookie(this: &HtmlDocument) -> Result; + pub fn cookie(this: &HtmlDocument) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLDocument" , js_name = cookie)] #[doc = "Setter for the `cookie` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/designMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn design_mode(this: &HtmlDocument) -> String; + pub fn design_mode(this: &HtmlDocument) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = designMode)] #[doc = "Setter for the `designMode` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/fgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn fg_color(this: &HtmlDocument) -> String; + pub fn fg_color(this: &HtmlDocument) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = fgColor)] #[doc = "Setter for the `fgColor` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/linkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn link_color(this: &HtmlDocument) -> String; + pub fn link_color(this: &HtmlDocument) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = linkColor)] #[doc = "Setter for the `linkColor` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/vlinkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn vlink_color(this: &HtmlDocument) -> String; + pub fn vlink_color(this: &HtmlDocument) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = vlinkColor)] #[doc = "Setter for the `vlinkColor` field of this object."] #[doc = ""] @@ -102,7 +102,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/alinkColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn alink_color(this: &HtmlDocument) -> String; + pub fn alink_color(this: &HtmlDocument) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = alinkColor)] #[doc = "Setter for the `alinkColor` field of this object."] #[doc = ""] @@ -116,7 +116,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn bg_color(this: &HtmlDocument) -> String; + pub fn bg_color(this: &HtmlDocument) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLDocument" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] @@ -269,7 +269,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] - pub fn query_command_value(this: &HtmlDocument, command_id: &str) -> Result; + pub fn query_command_value( + this: &HtmlDocument, + command_id: &str, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (method , structural , js_class = "HTMLDocument" , js_name = releaseEvents)] #[doc = "The `releaseEvents()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlElement.rs b/crates/web-sys/src/features/gen_HtmlElement.rs index 51738e1ba88..c8995e759a1 100644 --- a/crates/web-sys/src/features/gen_HtmlElement.rs +++ b/crates/web-sys/src/features/gen_HtmlElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn title(this: &HtmlElement) -> String; + pub fn title(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = title)] #[doc = "Setter for the `title` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn lang(this: &HtmlElement) -> String; + pub fn lang(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = lang)] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn dir(this: &HtmlElement) -> String; + pub fn dir(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = dir)] #[doc = "Setter for the `dir` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn inner_text(this: &HtmlElement) -> String; + pub fn inner_text(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = innerText)] #[doc = "Setter for the `innerText` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKey)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn access_key(this: &HtmlElement) -> String; + pub fn access_key(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = accessKey)] #[doc = "Setter for the `accessKey` field of this object."] #[doc = ""] @@ -144,7 +144,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKeyLabel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn access_key_label(this: &HtmlElement) -> String; + pub fn access_key_label(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLElement" , js_name = draggable)] #[doc = "Getter for the `draggable` field of this object."] #[doc = ""] @@ -165,7 +165,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn content_editable(this: &HtmlElement) -> String; + pub fn content_editable(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = contentEditable)] #[doc = "Setter for the `contentEditable` field of this object."] #[doc = ""] @@ -186,7 +186,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/popover)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn popover(this: &HtmlElement) -> Option; + pub fn popover(this: &HtmlElement) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLElement" , js_name = popover)] #[doc = "Setter for the `popover` field of this object."] #[doc = ""] @@ -1469,7 +1469,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] - pub fn nonce(this: &HtmlElement) -> String; + pub fn nonce(this: &HtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLElement" , js_name = nonce)] #[doc = "Setter for the `nonce` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlEmbedElement.rs b/crates/web-sys/src/features/gen_HtmlEmbedElement.rs index ab89c6e3180..805ae985df3 100644 --- a/crates/web-sys/src/features/gen_HtmlEmbedElement.rs +++ b/crates/web-sys/src/features/gen_HtmlEmbedElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] - pub fn src(this: &HtmlEmbedElement) -> String; + pub fn src(this: &HtmlEmbedElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] - pub fn type_(this: &HtmlEmbedElement) -> String; + pub fn type_(this: &HtmlEmbedElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] - pub fn width(this: &HtmlEmbedElement) -> String; + pub fn width(this: &HtmlEmbedElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] - pub fn height(this: &HtmlEmbedElement) -> String; + pub fn height(this: &HtmlEmbedElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] - pub fn align(this: &HtmlEmbedElement) -> String; + pub fn align(this: &HtmlEmbedElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] - pub fn name(this: &HtmlEmbedElement) -> String; + pub fn name(this: &HtmlEmbedElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLEmbedElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs b/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs index 45ca9d2c1f6..79f533b6f49 100644 --- a/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] - pub fn name(this: &HtmlFieldSetElement) -> String; + pub fn name(this: &HtmlFieldSetElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -54,7 +54,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] - pub fn type_(this: &HtmlFieldSetElement) -> String; + pub fn type_(this: &HtmlFieldSetElement) -> ::alloc::string::String; #[cfg(feature = "HtmlCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = elements)] #[doc = "Getter for the `elements` field of this object."] @@ -84,7 +84,9 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] - pub fn validation_message(this: &HtmlFieldSetElement) -> Result; + pub fn validation_message( + this: &HtmlFieldSetElement, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (method , structural , js_class = "HTMLFieldSetElement" , js_name = checkValidity)] #[doc = "The `checkValidity()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlFontElement.rs b/crates/web-sys/src/features/gen_HtmlFontElement.rs index bd7fe716142..40f4a144ec2 100644 --- a/crates/web-sys/src/features/gen_HtmlFontElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFontElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/color)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] - pub fn color(this: &HtmlFontElement) -> String; + pub fn color(this: &HtmlFontElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = color)] #[doc = "Setter for the `color` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/face)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] - pub fn face(this: &HtmlFontElement) -> String; + pub fn face(this: &HtmlFontElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = face)] #[doc = "Setter for the `face` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] - pub fn size(this: &HtmlFontElement) -> String; + pub fn size(this: &HtmlFontElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFontElement" , js_name = size)] #[doc = "Setter for the `size` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlFormElement.rs b/crates/web-sys/src/features/gen_HtmlFormElement.rs index 4745000980e..9b3b03f4ea3 100644 --- a/crates/web-sys/src/features/gen_HtmlFormElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFormElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn accept_charset(this: &HtmlFormElement) -> String; + pub fn accept_charset(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = acceptCharset)] #[doc = "Setter for the `acceptCharset` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn action(this: &HtmlFormElement) -> String; + pub fn action(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = action)] #[doc = "Setter for the `action` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn autocomplete(this: &HtmlFormElement) -> String; + pub fn autocomplete(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn enctype(this: &HtmlFormElement) -> String; + pub fn enctype(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = enctype)] #[doc = "Setter for the `enctype` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn encoding(this: &HtmlFormElement) -> String; + pub fn encoding(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = encoding)] #[doc = "Setter for the `encoding` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn method(this: &HtmlFormElement) -> String; + pub fn method(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = method)] #[doc = "Setter for the `method` field of this object."] #[doc = ""] @@ -102,7 +102,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn name(this: &HtmlFormElement) -> String; + pub fn name(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] - pub fn target(this: &HtmlFormElement) -> String; + pub fn target(this: &HtmlFormElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFormElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlFrameElement.rs b/crates/web-sys/src/features/gen_HtmlFrameElement.rs index 2fc4d2e982d..3bb1c2e8f79 100644 --- a/crates/web-sys/src/features/gen_HtmlFrameElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFrameElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] - pub fn name(this: &HtmlFrameElement) -> String; + pub fn name(this: &HtmlFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/scrolling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] - pub fn scrolling(this: &HtmlFrameElement) -> String; + pub fn scrolling(this: &HtmlFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = scrolling)] #[doc = "Setter for the `scrolling` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] - pub fn src(this: &HtmlFrameElement) -> String; + pub fn src(this: &HtmlFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/frameBorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] - pub fn frame_border(this: &HtmlFrameElement) -> String; + pub fn frame_border(this: &HtmlFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = frameBorder)] #[doc = "Setter for the `frameBorder` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] - pub fn long_desc(this: &HtmlFrameElement) -> String; + pub fn long_desc(this: &HtmlFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = longDesc)] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] @@ -118,7 +118,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] - pub fn margin_height(this: &HtmlFrameElement) -> String; + pub fn margin_height(this: &HtmlFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginHeight)] #[doc = "Setter for the `marginHeight` field of this object."] #[doc = ""] @@ -132,7 +132,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] - pub fn margin_width(this: &HtmlFrameElement) -> String; + pub fn margin_width(this: &HtmlFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginWidth)] #[doc = "Setter for the `marginWidth` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs b/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs index ed44859b390..72a89f3d1ce 100644 --- a/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs +++ b/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/cols)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] - pub fn cols(this: &HtmlFrameSetElement) -> String; + pub fn cols(this: &HtmlFrameSetElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = cols)] #[doc = "Setter for the `cols` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/rows)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] - pub fn rows(this: &HtmlFrameSetElement) -> String; + pub fn rows(this: &HtmlFrameSetElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = rows)] #[doc = "Setter for the `rows` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlHeadingElement.rs b/crates/web-sys/src/features/gen_HtmlHeadingElement.rs index 28900782157..7bf7f08dc3e 100644 --- a/crates/web-sys/src/features/gen_HtmlHeadingElement.rs +++ b/crates/web-sys/src/features/gen_HtmlHeadingElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] - pub fn align(this: &HtmlHeadingElement) -> String; + pub fn align(this: &HtmlHeadingElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHeadingElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlHrElement.rs b/crates/web-sys/src/features/gen_HtmlHrElement.rs index 911e385f59e..9eb61fd2f95 100644 --- a/crates/web-sys/src/features/gen_HtmlHrElement.rs +++ b/crates/web-sys/src/features/gen_HtmlHrElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] - pub fn align(this: &HtmlHrElement) -> String; + pub fn align(this: &HtmlHrElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/color)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] - pub fn color(this: &HtmlHrElement) -> String; + pub fn color(this: &HtmlHrElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = color)] #[doc = "Setter for the `color` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/size)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] - pub fn size(this: &HtmlHrElement) -> String; + pub fn size(this: &HtmlHrElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = size)] #[doc = "Setter for the `size` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] - pub fn width(this: &HtmlHrElement) -> String; + pub fn width(this: &HtmlHrElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHRElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlHtmlElement.rs b/crates/web-sys/src/features/gen_HtmlHtmlElement.rs index 57a0f68fba2..9cb7b3a5111 100644 --- a/crates/web-sys/src/features/gen_HtmlHtmlElement.rs +++ b/crates/web-sys/src/features/gen_HtmlHtmlElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] - pub fn version(this: &HtmlHtmlElement) -> String; + pub fn version(this: &HtmlHtmlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLHtmlElement" , js_name = version)] #[doc = "Setter for the `version` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlIFrameElement.rs b/crates/web-sys/src/features/gen_HtmlIFrameElement.rs index 8d0eab984cd..ff4a1c8122e 100644 --- a/crates/web-sys/src/features/gen_HtmlIFrameElement.rs +++ b/crates/web-sys/src/features/gen_HtmlIFrameElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn src(this: &HtmlIFrameElement) -> String; + pub fn src(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn srcdoc(this: &HtmlIFrameElement) -> String; + pub fn srcdoc(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = srcdoc)] #[doc = "Setter for the `srcdoc` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn name(this: &HtmlIFrameElement) -> String; + pub fn name(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -96,7 +96,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn width(this: &HtmlIFrameElement) -> String; + pub fn width(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] @@ -110,7 +110,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn height(this: &HtmlIFrameElement) -> String; + pub fn height(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] @@ -124,7 +124,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn referrer_policy(this: &HtmlIFrameElement) -> String; + pub fn referrer_policy(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] @@ -154,7 +154,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn align(this: &HtmlIFrameElement) -> String; + pub fn align(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -168,7 +168,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn scrolling(this: &HtmlIFrameElement) -> String; + pub fn scrolling(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = scrolling)] #[doc = "Setter for the `scrolling` field of this object."] #[doc = ""] @@ -182,7 +182,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn frame_border(this: &HtmlIFrameElement) -> String; + pub fn frame_border(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = frameBorder)] #[doc = "Setter for the `frameBorder` field of this object."] #[doc = ""] @@ -196,7 +196,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn long_desc(this: &HtmlIFrameElement) -> String; + pub fn long_desc(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = longDesc)] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] @@ -210,7 +210,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn margin_height(this: &HtmlIFrameElement) -> String; + pub fn margin_height(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginHeight)] #[doc = "Setter for the `marginHeight` field of this object."] #[doc = ""] @@ -224,7 +224,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] - pub fn margin_width(this: &HtmlIFrameElement) -> String; + pub fn margin_width(this: &HtmlIFrameElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginWidth)] #[doc = "Setter for the `marginWidth` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlImageElement.rs b/crates/web-sys/src/features/gen_HtmlImageElement.rs index ca486278d60..4ac489fd9a6 100644 --- a/crates/web-sys/src/features/gen_HtmlImageElement.rs +++ b/crates/web-sys/src/features/gen_HtmlImageElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn alt(this: &HtmlImageElement) -> String; + pub fn alt(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = alt)] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn src(this: &HtmlImageElement) -> String; + pub fn src(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn srcset(this: &HtmlImageElement) -> String; + pub fn srcset(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = srcset)] #[doc = "Setter for the `srcset` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn cross_origin(this: &HtmlImageElement) -> Option; + pub fn cross_origin(this: &HtmlImageElement) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn use_map(this: &HtmlImageElement) -> String; + pub fn use_map(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = useMap)] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn referrer_policy(this: &HtmlImageElement) -> String; + pub fn referrer_policy(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] @@ -144,7 +144,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn decoding(this: &HtmlImageElement) -> String; + pub fn decoding(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = decoding)] #[doc = "Setter for the `decoding` field of this object."] #[doc = ""] @@ -179,7 +179,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn name(this: &HtmlImageElement) -> String; + pub fn name(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -193,7 +193,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn align(this: &HtmlImageElement) -> String; + pub fn align(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -235,7 +235,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/longDesc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn long_desc(this: &HtmlImageElement) -> String; + pub fn long_desc(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = longDesc)] #[doc = "Setter for the `longDesc` field of this object."] #[doc = ""] @@ -249,7 +249,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn border(this: &HtmlImageElement) -> String; + pub fn border(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = border)] #[doc = "Setter for the `border` field of this object."] #[doc = ""] @@ -263,7 +263,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn sizes(this: &HtmlImageElement) -> String; + pub fn sizes(this: &HtmlImageElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLImageElement" , js_name = sizes)] #[doc = "Setter for the `sizes` field of this object."] #[doc = ""] @@ -277,7 +277,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/currentSrc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] - pub fn current_src(this: &HtmlImageElement) -> String; + pub fn current_src(this: &HtmlImageElement) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "Image")] #[doc = "The `new HtmlImageElement(..)` constructor, creating a new instance of `HtmlImageElement`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlInputElement.rs b/crates/web-sys/src/features/gen_HtmlInputElement.rs index 3e787c52a25..8d250cac379 100644 --- a/crates/web-sys/src/features/gen_HtmlInputElement.rs +++ b/crates/web-sys/src/features/gen_HtmlInputElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/accept)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn accept(this: &HtmlInputElement) -> String; + pub fn accept(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = accept)] #[doc = "Setter for the `accept` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/alt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn alt(this: &HtmlInputElement) -> String; + pub fn alt(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = alt)] #[doc = "Setter for the `alt` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn autocomplete(this: &HtmlInputElement) -> String; + pub fn autocomplete(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] @@ -146,7 +146,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn form_action(this: &HtmlInputElement) -> String; + pub fn form_action(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formAction)] #[doc = "Setter for the `formAction` field of this object."] #[doc = ""] @@ -160,7 +160,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formEnctype)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn form_enctype(this: &HtmlInputElement) -> String; + pub fn form_enctype(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formEnctype)] #[doc = "Setter for the `formEnctype` field of this object."] #[doc = ""] @@ -174,7 +174,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formMethod)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn form_method(this: &HtmlInputElement) -> String; + pub fn form_method(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formMethod)] #[doc = "Setter for the `formMethod` field of this object."] #[doc = ""] @@ -202,7 +202,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formTarget)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn form_target(this: &HtmlInputElement) -> String; + pub fn form_target(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = formTarget)] #[doc = "Setter for the `formTarget` field of this object."] #[doc = ""] @@ -244,7 +244,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/inputMode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn input_mode(this: &HtmlInputElement) -> String; + pub fn input_mode(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = inputMode)] #[doc = "Setter for the `inputMode` field of this object."] #[doc = ""] @@ -265,7 +265,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/max)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn max(this: &HtmlInputElement) -> String; + pub fn max(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = max)] #[doc = "Setter for the `max` field of this object."] #[doc = ""] @@ -293,7 +293,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/min)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn min(this: &HtmlInputElement) -> String; + pub fn min(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = min)] #[doc = "Setter for the `min` field of this object."] #[doc = ""] @@ -335,7 +335,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn name(this: &HtmlInputElement) -> String; + pub fn name(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -349,7 +349,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/pattern)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn pattern(this: &HtmlInputElement) -> String; + pub fn pattern(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = pattern)] #[doc = "Setter for the `pattern` field of this object."] #[doc = ""] @@ -363,7 +363,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn placeholder(this: &HtmlInputElement) -> String; + pub fn placeholder(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = placeholder)] #[doc = "Setter for the `placeholder` field of this object."] #[doc = ""] @@ -419,7 +419,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn src(this: &HtmlInputElement) -> String; + pub fn src(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -433,7 +433,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/step)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn step(this: &HtmlInputElement) -> String; + pub fn step(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = step)] #[doc = "Setter for the `step` field of this object."] #[doc = ""] @@ -447,7 +447,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn type_(this: &HtmlInputElement) -> String; + pub fn type_(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -461,7 +461,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn default_value(this: &HtmlInputElement) -> String; + pub fn default_value(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultValue)] #[doc = "Setter for the `defaultValue` field of this object."] #[doc = ""] @@ -475,7 +475,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn value(this: &HtmlInputElement) -> String; + pub fn value(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -532,7 +532,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn validation_message(this: &HtmlInputElement) -> Result; + pub fn validation_message(this: &HtmlInputElement) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLInputElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] @@ -575,7 +575,9 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn selection_direction(this: &HtmlInputElement) -> Result, JsValue>; + pub fn selection_direction( + this: &HtmlInputElement, + ) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionDirection)] #[doc = "Setter for the `selectionDirection` field of this object."] #[doc = ""] @@ -592,7 +594,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn align(this: &HtmlInputElement) -> String; + pub fn align(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -606,7 +608,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn use_map(this: &HtmlInputElement) -> String; + pub fn use_map(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = useMap)] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] @@ -655,7 +657,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] - pub fn popover_target_action(this: &HtmlInputElement) -> String; + pub fn popover_target_action(this: &HtmlInputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLInputElement" , js_name = popoverTargetAction)] #[doc = "Setter for the `popoverTargetAction` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlLabelElement.rs b/crates/web-sys/src/features/gen_HtmlLabelElement.rs index bde3c7fba6e..1c0bb33d08b 100644 --- a/crates/web-sys/src/features/gen_HtmlLabelElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLabelElement.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/htmlFor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] - pub fn html_for(this: &HtmlLabelElement) -> String; + pub fn html_for(this: &HtmlLabelElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLabelElement" , js_name = htmlFor)] #[doc = "Setter for the `htmlFor` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlLegendElement.rs b/crates/web-sys/src/features/gen_HtmlLegendElement.rs index 76b9bb70773..d2fb9fede5a 100644 --- a/crates/web-sys/src/features/gen_HtmlLegendElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLegendElement.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] - pub fn align(this: &HtmlLegendElement) -> String; + pub fn align(this: &HtmlLegendElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLegendElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlLiElement.rs b/crates/web-sys/src/features/gen_HtmlLiElement.rs index 07056913c1a..dc41b1ddc8b 100644 --- a/crates/web-sys/src/features/gen_HtmlLiElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLiElement.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] - pub fn type_(this: &HtmlLiElement) -> String; + pub fn type_(this: &HtmlLiElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLIElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlLinkElement.rs b/crates/web-sys/src/features/gen_HtmlLinkElement.rs index 8e3ab52258b..da121ef8b53 100644 --- a/crates/web-sys/src/features/gen_HtmlLinkElement.rs +++ b/crates/web-sys/src/features/gen_HtmlLinkElement.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn href(this: &HtmlLinkElement) -> String; + pub fn href(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn cross_origin(this: &HtmlLinkElement) -> Option; + pub fn cross_origin(this: &HtmlLinkElement) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn rel(this: &HtmlLinkElement) -> String; + pub fn rel(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] @@ -82,7 +82,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn media(this: &HtmlLinkElement) -> String; + pub fn media(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] @@ -96,7 +96,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn hreflang(this: &HtmlLinkElement) -> String; + pub fn hreflang(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = hreflang)] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] @@ -110,7 +110,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn type_(this: &HtmlLinkElement) -> String; + pub fn type_(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -124,7 +124,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn referrer_policy(this: &HtmlLinkElement) -> String; + pub fn referrer_policy(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] @@ -146,7 +146,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn charset(this: &HtmlLinkElement) -> String; + pub fn charset(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = charset)] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] @@ -160,7 +160,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rev)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn rev(this: &HtmlLinkElement) -> String; + pub fn rev(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = rev)] #[doc = "Setter for the `rev` field of this object."] #[doc = ""] @@ -174,7 +174,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn target(this: &HtmlLinkElement) -> String; + pub fn target(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = target)] #[doc = "Setter for the `target` field of this object."] #[doc = ""] @@ -188,7 +188,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn integrity(this: &HtmlLinkElement) -> String; + pub fn integrity(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = integrity)] #[doc = "Setter for the `integrity` field of this object."] #[doc = ""] @@ -202,7 +202,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] - pub fn as_(this: &HtmlLinkElement) -> String; + pub fn as_(this: &HtmlLinkElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLLinkElement" , js_name = as)] #[doc = "Setter for the `as` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlMapElement.rs b/crates/web-sys/src/features/gen_HtmlMapElement.rs index f1bf0950966..ce5b76b0a92 100644 --- a/crates/web-sys/src/features/gen_HtmlMapElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMapElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] - pub fn name(this: &HtmlMapElement) -> String; + pub fn name(this: &HtmlMapElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMapElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlMediaElement.rs b/crates/web-sys/src/features/gen_HtmlMediaElement.rs index 51746c49fe4..c4558a13a48 100644 --- a/crates/web-sys/src/features/gen_HtmlMediaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMediaElement.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] - pub fn src(this: &HtmlMediaElement) -> String; + pub fn src(this: &HtmlMediaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentSrc)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] - pub fn current_src(this: &HtmlMediaElement) -> String; + pub fn current_src(this: &HtmlMediaElement) -> ::alloc::string::String; #[cfg(feature = "MediaStream")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLMediaElement" , js_name = srcObject)] #[doc = "Getter for the `srcObject` field of this object."] @@ -63,7 +63,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] - pub fn cross_origin(this: &HtmlMediaElement) -> Option; + pub fn cross_origin(this: &HtmlMediaElement) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] @@ -84,7 +84,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preload)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] - pub fn preload(this: &HtmlMediaElement) -> String; + pub fn preload(this: &HtmlMediaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMediaElement" , js_name = preload)] #[doc = "Setter for the `preload` field of this object."] #[doc = ""] @@ -376,7 +376,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] - pub fn can_play_type(this: &HtmlMediaElement, type_: &str) -> String; + pub fn can_play_type(this: &HtmlMediaElement, type_: &str) -> ::alloc::string::String; # [wasm_bindgen (catch , method , structural , js_class = "HTMLMediaElement" , js_name = fastSeek)] #[doc = "The `fastSeek()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlMenuElement.rs b/crates/web-sys/src/features/gen_HtmlMenuElement.rs index 083cdf453cd..983feb8c13c 100644 --- a/crates/web-sys/src/features/gen_HtmlMenuElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMenuElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] - pub fn type_(this: &HtmlMenuElement) -> String; + pub fn type_(this: &HtmlMenuElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] - pub fn label(this: &HtmlMenuElement) -> String; + pub fn label(this: &HtmlMenuElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs b/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs index e4d713f353a..6f98ed6b2e7 100644 --- a/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs @@ -20,7 +20,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] #[deprecated(note = "Absent in all major browsers")] - pub fn type_(this: &HtmlMenuItemElement) -> String; + pub fn type_(this: &HtmlMenuItemElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -36,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] #[deprecated(note = "Absent in all major browsers")] - pub fn label(this: &HtmlMenuItemElement) -> String; + pub fn label(this: &HtmlMenuItemElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] @@ -52,7 +52,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] #[deprecated(note = "Absent in all major browsers")] - pub fn icon(this: &HtmlMenuItemElement) -> String; + pub fn icon(this: &HtmlMenuItemElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = icon)] #[doc = "Setter for the `icon` field of this object."] #[doc = ""] @@ -100,7 +100,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] #[deprecated(note = "Absent in all major browsers")] - pub fn radiogroup(this: &HtmlMenuItemElement) -> String; + pub fn radiogroup(this: &HtmlMenuItemElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = radiogroup)] #[doc = "Setter for the `radiogroup` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlMetaElement.rs b/crates/web-sys/src/features/gen_HtmlMetaElement.rs index db16bee0f69..d11561d4ea9 100644 --- a/crates/web-sys/src/features/gen_HtmlMetaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlMetaElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] - pub fn name(this: &HtmlMetaElement) -> String; + pub fn name(this: &HtmlMetaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/httpEquiv)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] - pub fn http_equiv(this: &HtmlMetaElement) -> String; + pub fn http_equiv(this: &HtmlMetaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = httpEquiv)] #[doc = "Setter for the `httpEquiv` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/content)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] - pub fn content(this: &HtmlMetaElement) -> String; + pub fn content(this: &HtmlMetaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = content)] #[doc = "Setter for the `content` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/scheme)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] - pub fn scheme(this: &HtmlMetaElement) -> String; + pub fn scheme(this: &HtmlMetaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLMetaElement" , js_name = scheme)] #[doc = "Setter for the `scheme` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlModElement.rs b/crates/web-sys/src/features/gen_HtmlModElement.rs index e47d87a7bbd..07de5ebb2ca 100644 --- a/crates/web-sys/src/features/gen_HtmlModElement.rs +++ b/crates/web-sys/src/features/gen_HtmlModElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/cite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] - pub fn cite(this: &HtmlModElement) -> String; + pub fn cite(this: &HtmlModElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLModElement" , js_name = cite)] #[doc = "Setter for the `cite` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/dateTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] - pub fn date_time(this: &HtmlModElement) -> String; + pub fn date_time(this: &HtmlModElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLModElement" , js_name = dateTime)] #[doc = "Setter for the `dateTime` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlOListElement.rs b/crates/web-sys/src/features/gen_HtmlOListElement.rs index 380f753c832..a4c50da984e 100644 --- a/crates/web-sys/src/features/gen_HtmlOListElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOListElement.rs @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] - pub fn type_(this: &HtmlOListElement) -> String; + pub fn type_(this: &HtmlOListElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOListElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlObjectElement.rs b/crates/web-sys/src/features/gen_HtmlObjectElement.rs index bc5dfbd9c2f..1f14bea4bed 100644 --- a/crates/web-sys/src/features/gen_HtmlObjectElement.rs +++ b/crates/web-sys/src/features/gen_HtmlObjectElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn data(this: &HtmlObjectElement) -> String; + pub fn data(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = data)] #[doc = "Setter for the `data` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn type_(this: &HtmlObjectElement) -> String; + pub fn type_(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn name(this: &HtmlObjectElement) -> String; + pub fn name(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn use_map(this: &HtmlObjectElement) -> String; + pub fn use_map(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = useMap)] #[doc = "Setter for the `useMap` field of this object."] #[doc = ""] @@ -96,7 +96,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn width(this: &HtmlObjectElement) -> String; + pub fn width(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] @@ -110,7 +110,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn height(this: &HtmlObjectElement) -> String; + pub fn height(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] @@ -155,14 +155,15 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn validation_message(this: &HtmlObjectElement) -> Result; + pub fn validation_message(this: &HtmlObjectElement) + -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "HTMLObjectElement" , js_name = align)] #[doc = "Getter for the `align` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn align(this: &HtmlObjectElement) -> String; + pub fn align(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -176,7 +177,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/archive)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn archive(this: &HtmlObjectElement) -> String; + pub fn archive(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = archive)] #[doc = "Setter for the `archive` field of this object."] #[doc = ""] @@ -190,7 +191,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn code(this: &HtmlObjectElement) -> String; + pub fn code(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = code)] #[doc = "Setter for the `code` field of this object."] #[doc = ""] @@ -232,7 +233,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/standby)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn standby(this: &HtmlObjectElement) -> String; + pub fn standby(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = standby)] #[doc = "Setter for the `standby` field of this object."] #[doc = ""] @@ -260,7 +261,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeBase)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn code_base(this: &HtmlObjectElement) -> String; + pub fn code_base(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeBase)] #[doc = "Setter for the `codeBase` field of this object."] #[doc = ""] @@ -274,7 +275,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn code_type(this: &HtmlObjectElement) -> String; + pub fn code_type(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeType)] #[doc = "Setter for the `codeType` field of this object."] #[doc = ""] @@ -288,7 +289,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] - pub fn border(this: &HtmlObjectElement) -> String; + pub fn border(this: &HtmlObjectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLObjectElement" , js_name = border)] #[doc = "Setter for the `border` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs b/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs index 0f90bd36dbb..025d700f59d 100644 --- a/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] - pub fn label(this: &HtmlOptGroupElement) -> String; + pub fn label(this: &HtmlOptGroupElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptGroupElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlOptionElement.rs b/crates/web-sys/src/features/gen_HtmlOptionElement.rs index d87adc273cb..68b864ef567 100644 --- a/crates/web-sys/src/features/gen_HtmlOptionElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOptionElement.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] - pub fn label(this: &HtmlOptionElement) -> String; + pub fn label(this: &HtmlOptionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] @@ -82,7 +82,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] - pub fn value(this: &HtmlOptionElement) -> String; + pub fn value(this: &HtmlOptionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -96,7 +96,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] - pub fn text(this: &HtmlOptionElement) -> String; + pub fn text(this: &HtmlOptionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOptionElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlOutputElement.rs b/crates/web-sys/src/features/gen_HtmlOutputElement.rs index 90f162967cd..4e26e222ec9 100644 --- a/crates/web-sys/src/features/gen_HtmlOutputElement.rs +++ b/crates/web-sys/src/features/gen_HtmlOutputElement.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] - pub fn name(this: &HtmlOutputElement) -> String; + pub fn name(this: &HtmlOutputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -48,14 +48,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] - pub fn type_(this: &HtmlOutputElement) -> String; + pub fn type_(this: &HtmlOutputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = defaultValue)] #[doc = "Getter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] - pub fn default_value(this: &HtmlOutputElement) -> String; + pub fn default_value(this: &HtmlOutputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = defaultValue)] #[doc = "Setter for the `defaultValue` field of this object."] #[doc = ""] @@ -69,7 +69,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] - pub fn value(this: &HtmlOutputElement) -> String; + pub fn value(this: &HtmlOutputElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLOutputElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -98,7 +98,8 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] - pub fn validation_message(this: &HtmlOutputElement) -> Result; + pub fn validation_message(this: &HtmlOutputElement) + -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLOutputElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] diff --git a/crates/web-sys/src/features/gen_HtmlParagraphElement.rs b/crates/web-sys/src/features/gen_HtmlParagraphElement.rs index 25f7c050106..905e8735b01 100644 --- a/crates/web-sys/src/features/gen_HtmlParagraphElement.rs +++ b/crates/web-sys/src/features/gen_HtmlParagraphElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] - pub fn align(this: &HtmlParagraphElement) -> String; + pub fn align(this: &HtmlParagraphElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParagraphElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlParamElement.rs b/crates/web-sys/src/features/gen_HtmlParamElement.rs index 00cee244ff2..88d3136bfc8 100644 --- a/crates/web-sys/src/features/gen_HtmlParamElement.rs +++ b/crates/web-sys/src/features/gen_HtmlParamElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] - pub fn name(this: &HtmlParamElement) -> String; + pub fn name(this: &HtmlParamElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] - pub fn value(this: &HtmlParamElement) -> String; + pub fn value(this: &HtmlParamElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] - pub fn type_(this: &HtmlParamElement) -> String; + pub fn type_(this: &HtmlParamElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/valueType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] - pub fn value_type(this: &HtmlParamElement) -> String; + pub fn value_type(this: &HtmlParamElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLParamElement" , js_name = valueType)] #[doc = "Setter for the `valueType` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlQuoteElement.rs b/crates/web-sys/src/features/gen_HtmlQuoteElement.rs index 723bc2582b4..3e21831ee83 100644 --- a/crates/web-sys/src/features/gen_HtmlQuoteElement.rs +++ b/crates/web-sys/src/features/gen_HtmlQuoteElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement/cite)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] - pub fn cite(this: &HtmlQuoteElement) -> String; + pub fn cite(this: &HtmlQuoteElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLQuoteElement" , js_name = cite)] #[doc = "Setter for the `cite` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlScriptElement.rs b/crates/web-sys/src/features/gen_HtmlScriptElement.rs index ce910c24194..d044c1ea6c0 100644 --- a/crates/web-sys/src/features/gen_HtmlScriptElement.rs +++ b/crates/web-sys/src/features/gen_HtmlScriptElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn src(this: &HtmlScriptElement) -> String; + pub fn src(this: &HtmlScriptElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn type_(this: &HtmlScriptElement) -> String; + pub fn type_(this: &HtmlScriptElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/charset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn charset(this: &HtmlScriptElement) -> String; + pub fn charset(this: &HtmlScriptElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = charset)] #[doc = "Setter for the `charset` field of this object."] #[doc = ""] @@ -102,7 +102,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn cross_origin(this: &HtmlScriptElement) -> Option; + pub fn cross_origin(this: &HtmlScriptElement) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] @@ -116,7 +116,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn text(this: &HtmlScriptElement) -> Result; + pub fn text(this: &HtmlScriptElement) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLScriptElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/event)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn event(this: &HtmlScriptElement) -> String; + pub fn event(this: &HtmlScriptElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = event)] #[doc = "Setter for the `event` field of this object."] #[doc = ""] @@ -144,7 +144,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/htmlFor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn html_for(this: &HtmlScriptElement) -> String; + pub fn html_for(this: &HtmlScriptElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = htmlFor)] #[doc = "Setter for the `htmlFor` field of this object."] #[doc = ""] @@ -158,7 +158,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] - pub fn integrity(this: &HtmlScriptElement) -> String; + pub fn integrity(this: &HtmlScriptElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLScriptElement" , js_name = integrity)] #[doc = "Setter for the `integrity` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlSelectElement.rs b/crates/web-sys/src/features/gen_HtmlSelectElement.rs index 0cac37fcf46..67d30eb6e72 100644 --- a/crates/web-sys/src/features/gen_HtmlSelectElement.rs +++ b/crates/web-sys/src/features/gen_HtmlSelectElement.rs @@ -38,7 +38,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] - pub fn autocomplete(this: &HtmlSelectElement) -> String; + pub fn autocomplete(this: &HtmlSelectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] - pub fn name(this: &HtmlSelectElement) -> String; + pub fn name(this: &HtmlSelectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] - pub fn type_(this: &HtmlSelectElement) -> String; + pub fn type_(this: &HtmlSelectElement) -> ::alloc::string::String; #[cfg(feature = "HtmlOptionsCollection")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = options)] #[doc = "Getter for the `options` field of this object."] @@ -181,7 +181,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] - pub fn value(this: &HtmlSelectElement) -> String; + pub fn value(this: &HtmlSelectElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSelectElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -210,7 +210,8 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] - pub fn validation_message(this: &HtmlSelectElement) -> Result; + pub fn validation_message(this: &HtmlSelectElement) + -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLSelectElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] diff --git a/crates/web-sys/src/features/gen_HtmlSlotElement.rs b/crates/web-sys/src/features/gen_HtmlSlotElement.rs index 04b96da24fd..2924e7be8b9 100644 --- a/crates/web-sys/src/features/gen_HtmlSlotElement.rs +++ b/crates/web-sys/src/features/gen_HtmlSlotElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] - pub fn name(this: &HtmlSlotElement) -> String; + pub fn name(this: &HtmlSlotElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSlotElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlSourceElement.rs b/crates/web-sys/src/features/gen_HtmlSourceElement.rs index 8fb7dee9dea..b37d1d14719 100644 --- a/crates/web-sys/src/features/gen_HtmlSourceElement.rs +++ b/crates/web-sys/src/features/gen_HtmlSourceElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] - pub fn src(this: &HtmlSourceElement) -> String; + pub fn src(this: &HtmlSourceElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] - pub fn type_(this: &HtmlSourceElement) -> String; + pub fn type_(this: &HtmlSourceElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/srcset)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] - pub fn srcset(this: &HtmlSourceElement) -> String; + pub fn srcset(this: &HtmlSourceElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = srcset)] #[doc = "Setter for the `srcset` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/sizes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] - pub fn sizes(this: &HtmlSourceElement) -> String; + pub fn sizes(this: &HtmlSourceElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = sizes)] #[doc = "Setter for the `sizes` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] - pub fn media(this: &HtmlSourceElement) -> String; + pub fn media(this: &HtmlSourceElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLSourceElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlStyleElement.rs b/crates/web-sys/src/features/gen_HtmlStyleElement.rs index e7ca11f0d9e..57530860a64 100644 --- a/crates/web-sys/src/features/gen_HtmlStyleElement.rs +++ b/crates/web-sys/src/features/gen_HtmlStyleElement.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] - pub fn media(this: &HtmlStyleElement) -> String; + pub fn media(this: &HtmlStyleElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] - pub fn type_(this: &HtmlStyleElement) -> String; + pub fn type_(this: &HtmlStyleElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLStyleElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs b/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs index 7a19986f7ee..d6eef313db1 100644 --- a/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] - pub fn align(this: &HtmlTableCaptionElement) -> String; + pub fn align(this: &HtmlTableCaptionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCaptionElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTableCellElement.rs b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs index 9a4f0556e1d..a1c998d5599 100644 --- a/crates/web-sys/src/features/gen_HtmlTableCellElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/headers)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn headers(this: &HtmlTableCellElement) -> String; + pub fn headers(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = headers)] #[doc = "Setter for the `headers` field of this object."] #[doc = ""] @@ -67,7 +67,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/abbr)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn abbr(this: &HtmlTableCellElement) -> String; + pub fn abbr(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = abbr)] #[doc = "Setter for the `abbr` field of this object."] #[doc = ""] @@ -81,7 +81,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/scope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn scope(this: &HtmlTableCellElement) -> String; + pub fn scope(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = scope)] #[doc = "Setter for the `scope` field of this object."] #[doc = ""] @@ -95,7 +95,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn align(this: &HtmlTableCellElement) -> String; + pub fn align(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -109,7 +109,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/axis)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn axis(this: &HtmlTableCellElement) -> String; + pub fn axis(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = axis)] #[doc = "Setter for the `axis` field of this object."] #[doc = ""] @@ -123,7 +123,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/height)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn height(this: &HtmlTableCellElement) -> String; + pub fn height(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = height)] #[doc = "Setter for the `height` field of this object."] #[doc = ""] @@ -137,7 +137,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn width(this: &HtmlTableCellElement) -> String; + pub fn width(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] @@ -151,7 +151,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn ch(this: &HtmlTableCellElement) -> String; + pub fn ch(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] @@ -165,7 +165,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn ch_off(this: &HtmlTableCellElement) -> String; + pub fn ch_off(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] @@ -193,7 +193,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn v_align(this: &HtmlTableCellElement) -> String; + pub fn v_align(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] @@ -207,7 +207,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] - pub fn bg_color(this: &HtmlTableCellElement) -> String; + pub fn bg_color(this: &HtmlTableCellElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableCellElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTableColElement.rs b/crates/web-sys/src/features/gen_HtmlTableColElement.rs index 91febc5a80b..0319ad7aef0 100644 --- a/crates/web-sys/src/features/gen_HtmlTableColElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableColElement.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] - pub fn align(this: &HtmlTableColElement) -> String; + pub fn align(this: &HtmlTableColElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] - pub fn ch(this: &HtmlTableColElement) -> String; + pub fn ch(this: &HtmlTableColElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] - pub fn ch_off(this: &HtmlTableColElement) -> String; + pub fn ch_off(this: &HtmlTableColElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] - pub fn v_align(this: &HtmlTableColElement) -> String; + pub fn v_align(this: &HtmlTableColElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] @@ -88,7 +88,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] - pub fn width(this: &HtmlTableColElement) -> String; + pub fn width(this: &HtmlTableColElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableColElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTableElement.rs b/crates/web-sys/src/features/gen_HtmlTableElement.rs index 2a63f76da97..4f05718b8a4 100644 --- a/crates/web-sys/src/features/gen_HtmlTableElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableElement.rs @@ -82,7 +82,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn align(this: &HtmlTableElement) -> String; + pub fn align(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -96,7 +96,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn border(this: &HtmlTableElement) -> String; + pub fn border(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = border)] #[doc = "Setter for the `border` field of this object."] #[doc = ""] @@ -110,7 +110,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/frame)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn frame(this: &HtmlTableElement) -> String; + pub fn frame(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = frame)] #[doc = "Setter for the `frame` field of this object."] #[doc = ""] @@ -124,7 +124,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn rules(this: &HtmlTableElement) -> String; + pub fn rules(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = rules)] #[doc = "Setter for the `rules` field of this object."] #[doc = ""] @@ -138,7 +138,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/summary)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn summary(this: &HtmlTableElement) -> String; + pub fn summary(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = summary)] #[doc = "Setter for the `summary` field of this object."] #[doc = ""] @@ -152,7 +152,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/width)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn width(this: &HtmlTableElement) -> String; + pub fn width(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = width)] #[doc = "Setter for the `width` field of this object."] #[doc = ""] @@ -166,7 +166,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn bg_color(this: &HtmlTableElement) -> String; + pub fn bg_color(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] @@ -180,7 +180,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellPadding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn cell_padding(this: &HtmlTableElement) -> String; + pub fn cell_padding(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = cellPadding)] #[doc = "Setter for the `cellPadding` field of this object."] #[doc = ""] @@ -194,7 +194,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellSpacing)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] - pub fn cell_spacing(this: &HtmlTableElement) -> String; + pub fn cell_spacing(this: &HtmlTableElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableElement" , js_name = cellSpacing)] #[doc = "Setter for the `cellSpacing` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTableRowElement.rs b/crates/web-sys/src/features/gen_HtmlTableRowElement.rs index 287cdcc53e7..71124635d98 100644 --- a/crates/web-sys/src/features/gen_HtmlTableRowElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableRowElement.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] - pub fn align(this: &HtmlTableRowElement) -> String; + pub fn align(this: &HtmlTableRowElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -54,7 +54,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] - pub fn ch(this: &HtmlTableRowElement) -> String; + pub fn ch(this: &HtmlTableRowElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] @@ -68,7 +68,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] - pub fn ch_off(this: &HtmlTableRowElement) -> String; + pub fn ch_off(this: &HtmlTableRowElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] @@ -82,7 +82,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] - pub fn v_align(this: &HtmlTableRowElement) -> String; + pub fn v_align(this: &HtmlTableRowElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] @@ -96,7 +96,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/bgColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] - pub fn bg_color(this: &HtmlTableRowElement) -> String; + pub fn bg_color(this: &HtmlTableRowElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableRowElement" , js_name = bgColor)] #[doc = "Setter for the `bgColor` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs b/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs index ee7cfa136c6..1c820e814a5 100644 --- a/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] - pub fn align(this: &HtmlTableSectionElement) -> String; + pub fn align(this: &HtmlTableSectionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = align)] #[doc = "Setter for the `align` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] - pub fn ch(this: &HtmlTableSectionElement) -> String; + pub fn ch(this: &HtmlTableSectionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = ch)] #[doc = "Setter for the `ch` field of this object."] #[doc = ""] @@ -54,7 +54,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] - pub fn ch_off(this: &HtmlTableSectionElement) -> String; + pub fn ch_off(this: &HtmlTableSectionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = chOff)] #[doc = "Setter for the `chOff` field of this object."] #[doc = ""] @@ -68,7 +68,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] - pub fn v_align(this: &HtmlTableSectionElement) -> String; + pub fn v_align(this: &HtmlTableSectionElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = vAlign)] #[doc = "Setter for the `vAlign` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs b/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs index 3192dda1955..d954e7887b3 100644 --- a/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autocomplete)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn autocomplete(this: &HtmlTextAreaElement) -> String; + pub fn autocomplete(this: &HtmlTextAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autocomplete)] #[doc = "Setter for the `autocomplete` field of this object."] #[doc = ""] @@ -116,7 +116,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn name(this: &HtmlTextAreaElement) -> String; + pub fn name(this: &HtmlTextAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/placeholder)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn placeholder(this: &HtmlTextAreaElement) -> String; + pub fn placeholder(this: &HtmlTextAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = placeholder)] #[doc = "Setter for the `placeholder` field of this object."] #[doc = ""] @@ -186,7 +186,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn wrap(this: &HtmlTextAreaElement) -> String; + pub fn wrap(this: &HtmlTextAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = wrap)] #[doc = "Setter for the `wrap` field of this object."] #[doc = ""] @@ -200,14 +200,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn type_(this: &HtmlTextAreaElement) -> String; + pub fn type_(this: &HtmlTextAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = defaultValue)] #[doc = "Getter for the `defaultValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/defaultValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn default_value(this: &HtmlTextAreaElement) -> Result; + pub fn default_value(this: &HtmlTextAreaElement) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = defaultValue)] #[doc = "Setter for the `defaultValue` field of this object."] #[doc = ""] @@ -221,7 +221,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn value(this: &HtmlTextAreaElement) -> String; + pub fn value(this: &HtmlTextAreaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] @@ -257,7 +257,9 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validationMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn validation_message(this: &HtmlTextAreaElement) -> Result; + pub fn validation_message( + this: &HtmlTextAreaElement, + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "NodeList")] # [wasm_bindgen (structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = labels)] #[doc = "Getter for the `labels` field of this object."] @@ -304,7 +306,9 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] - pub fn selection_direction(this: &HtmlTextAreaElement) -> Result, JsValue>; + pub fn selection_direction( + this: &HtmlTextAreaElement, + ) -> Result, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionDirection)] #[doc = "Setter for the `selectionDirection` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTimeElement.rs b/crates/web-sys/src/features/gen_HtmlTimeElement.rs index bb83d28e15f..fdf149a9c5a 100644 --- a/crates/web-sys/src/features/gen_HtmlTimeElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTimeElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] - pub fn date_time(this: &HtmlTimeElement) -> String; + pub fn date_time(this: &HtmlTimeElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTimeElement" , js_name = dateTime)] #[doc = "Setter for the `dateTime` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTitleElement.rs b/crates/web-sys/src/features/gen_HtmlTitleElement.rs index 5d515078e50..93c7797da4c 100644 --- a/crates/web-sys/src/features/gen_HtmlTitleElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTitleElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] - pub fn text(this: &HtmlTitleElement) -> Result; + pub fn text(this: &HtmlTitleElement) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "HTMLTitleElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlTrackElement.rs b/crates/web-sys/src/features/gen_HtmlTrackElement.rs index 0d388db953c..f61b159b8ca 100644 --- a/crates/web-sys/src/features/gen_HtmlTrackElement.rs +++ b/crates/web-sys/src/features/gen_HtmlTrackElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] - pub fn kind(this: &HtmlTrackElement) -> String; + pub fn kind(this: &HtmlTrackElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = kind)] #[doc = "Setter for the `kind` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] - pub fn src(this: &HtmlTrackElement) -> String; + pub fn src(this: &HtmlTrackElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/srclang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] - pub fn srclang(this: &HtmlTrackElement) -> String; + pub fn srclang(this: &HtmlTrackElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = srclang)] #[doc = "Setter for the `srclang` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] - pub fn label(this: &HtmlTrackElement) -> String; + pub fn label(this: &HtmlTrackElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLTrackElement" , js_name = label)] #[doc = "Setter for the `label` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlUListElement.rs b/crates/web-sys/src/features/gen_HtmlUListElement.rs index aae4b944ae8..7aa4b93ae66 100644 --- a/crates/web-sys/src/features/gen_HtmlUListElement.rs +++ b/crates/web-sys/src/features/gen_HtmlUListElement.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] - pub fn type_(this: &HtmlUListElement) -> String; + pub fn type_(this: &HtmlUListElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLUListElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HtmlVideoElement.rs b/crates/web-sys/src/features/gen_HtmlVideoElement.rs index c76989ab1b7..3aa5cf6e175 100644 --- a/crates/web-sys/src/features/gen_HtmlVideoElement.rs +++ b/crates/web-sys/src/features/gen_HtmlVideoElement.rs @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] - pub fn poster(this: &HtmlVideoElement) -> String; + pub fn poster(this: &HtmlVideoElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "HTMLVideoElement" , js_name = poster)] #[doc = "Setter for the `poster` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_HttpConnInfo.rs b/crates/web-sys/src/features/gen_HttpConnInfo.rs index 21819e6a530..59d9539ce6a 100644 --- a/crates/web-sys/src/features/gen_HttpConnInfo.rs +++ b/crates/web-sys/src/features/gen_HttpConnInfo.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] #[wasm_bindgen(method, getter = "protocolVersion")] - pub fn get_protocol_version(this: &HttpConnInfo) -> Option; + pub fn get_protocol_version(this: &HttpConnInfo) -> Option<::alloc::string::String>; #[doc = "Change the `protocolVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] diff --git a/crates/web-sys/src/features/gen_HttpConnectionElement.rs b/crates/web-sys/src/features/gen_HttpConnectionElement.rs index 8488fc9d2bc..c9efd25a24f 100644 --- a/crates/web-sys/src/features/gen_HttpConnectionElement.rs +++ b/crates/web-sys/src/features/gen_HttpConnectionElement.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] #[wasm_bindgen(method, getter = "host")] - pub fn get_host(this: &HttpConnectionElement) -> Option; + pub fn get_host(this: &HttpConnectionElement) -> Option<::alloc::string::String>; #[doc = "Change the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] diff --git a/crates/web-sys/src/features/gen_IdbDatabase.rs b/crates/web-sys/src/features/gen_IdbDatabase.rs index d7cdae29364..b0460f925ad 100644 --- a/crates/web-sys/src/features/gen_IdbDatabase.rs +++ b/crates/web-sys/src/features/gen_IdbDatabase.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] - pub fn name(this: &IdbDatabase) -> String; + pub fn name(this: &IdbDatabase) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = version)] #[doc = "Getter for the `version` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdbIndex.rs b/crates/web-sys/src/features/gen_IdbIndex.rs index 0a2eeebc174..f2689e4cbf2 100644 --- a/crates/web-sys/src/features/gen_IdbIndex.rs +++ b/crates/web-sys/src/features/gen_IdbIndex.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] - pub fn name(this: &IdbIndex) -> String; + pub fn name(this: &IdbIndex) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "IDBIndex" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -62,7 +62,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] #[deprecated] - pub fn locale(this: &IdbIndex) -> Option; + pub fn locale(this: &IdbIndex) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "IDBIndex" , js_name = isAutoLocale)] #[doc = "Getter for the `isAutoLocale` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IdbIndexParameters.rs b/crates/web-sys/src/features/gen_IdbIndexParameters.rs index 87f7c4b228d..a505954bc37 100644 --- a/crates/web-sys/src/features/gen_IdbIndexParameters.rs +++ b/crates/web-sys/src/features/gen_IdbIndexParameters.rs @@ -15,7 +15,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] #[deprecated] #[wasm_bindgen(method, getter = "locale")] - pub fn get_locale(this: &IdbIndexParameters) -> Option; + pub fn get_locale(this: &IdbIndexParameters) -> Option<::alloc::string::String>; #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] diff --git a/crates/web-sys/src/features/gen_IdbMutableFile.rs b/crates/web-sys/src/features/gen_IdbMutableFile.rs index cabc735391a..13a46d5ee34 100644 --- a/crates/web-sys/src/features/gen_IdbMutableFile.rs +++ b/crates/web-sys/src/features/gen_IdbMutableFile.rs @@ -20,7 +20,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] #[deprecated] - pub fn name(this: &IdbMutableFile) -> String; + pub fn name(this: &IdbMutableFile) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] @@ -28,7 +28,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] #[deprecated] - pub fn type_(this: &IdbMutableFile) -> String; + pub fn type_(this: &IdbMutableFile) -> ::alloc::string::String; #[cfg(feature = "IdbDatabase")] # [wasm_bindgen (structural , method , getter , js_class = "IDBMutableFile" , js_name = database)] #[doc = "Getter for the `database` field of this object."] diff --git a/crates/web-sys/src/features/gen_IdbObjectStore.rs b/crates/web-sys/src/features/gen_IdbObjectStore.rs index 3d3ab9609e6..cc48afb53e5 100644 --- a/crates/web-sys/src/features/gen_IdbObjectStore.rs +++ b/crates/web-sys/src/features/gen_IdbObjectStore.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] - pub fn name(this: &IdbObjectStore) -> String; + pub fn name(this: &IdbObjectStore) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "IDBObjectStore" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ImageCaptureError.rs b/crates/web-sys/src/features/gen_ImageCaptureError.rs index 1147848898f..35877f2b025 100644 --- a/crates/web-sys/src/features/gen_ImageCaptureError.rs +++ b/crates/web-sys/src/features/gen_ImageCaptureError.rs @@ -25,7 +25,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] - pub fn message(this: &ImageCaptureError) -> String; + pub fn message(this: &ImageCaptureError) -> ::alloc::string::String; } impl ImageCaptureError { #[doc = "The `ImageCaptureError.FRAME_GRAB_ERROR` const."] diff --git a/crates/web-sys/src/features/gen_ImageDecoder.rs b/crates/web-sys/src/features/gen_ImageDecoder.rs index a0ffcac1111..202451a030a 100644 --- a/crates/web-sys/src/features/gen_ImageDecoder.rs +++ b/crates/web-sys/src/features/gen_ImageDecoder.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn type_(this: &ImageDecoder) -> String; + pub fn type_(this: &ImageDecoder) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "ImageDecoder" , js_name = complete)] #[doc = "Getter for the `complete` field of this object."] diff --git a/crates/web-sys/src/features/gen_ImageDecoderInit.rs b/crates/web-sys/src/features/gen_ImageDecoderInit.rs index af6e189d3a0..50dbd0d18c9 100644 --- a/crates/web-sys/src/features/gen_ImageDecoderInit.rs +++ b/crates/web-sys/src/features/gen_ImageDecoderInit.rs @@ -134,7 +134,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &ImageDecoderInit) -> String; + pub fn get_type(this: &ImageDecoderInit) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ImageEncodeOptions.rs b/crates/web-sys/src/features/gen_ImageEncodeOptions.rs index acc724aa9b9..943ba8fa089 100644 --- a/crates/web-sys/src/features/gen_ImageEncodeOptions.rs +++ b/crates/web-sys/src/features/gen_ImageEncodeOptions.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &ImageEncodeOptions) -> Option; + pub fn get_type(this: &ImageEncodeOptions) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ImageEncodeOptions`*"] diff --git a/crates/web-sys/src/features/gen_InputEvent.rs b/crates/web-sys/src/features/gen_InputEvent.rs index dddf6af1303..82056476aca 100644 --- a/crates/web-sys/src/features/gen_InputEvent.rs +++ b/crates/web-sys/src/features/gen_InputEvent.rs @@ -25,14 +25,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/inputType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] - pub fn input_type(this: &InputEvent) -> String; + pub fn input_type(this: &InputEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = data)] #[doc = "Getter for the `data` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/data)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] - pub fn data(this: &InputEvent) -> Option; + pub fn data(this: &InputEvent) -> Option<::alloc::string::String>; #[cfg(feature = "DataTransfer")] # [wasm_bindgen (structural , method , getter , js_class = "InputEvent" , js_name = dataTransfer)] #[doc = "Getter for the `dataTransfer` field of this object."] diff --git a/crates/web-sys/src/features/gen_InputEventInit.rs b/crates/web-sys/src/features/gen_InputEventInit.rs index 0c0423a1461..7ff44de646c 100644 --- a/crates/web-sys/src/features/gen_InputEventInit.rs +++ b/crates/web-sys/src/features/gen_InputEventInit.rs @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "data")] - pub fn get_data(this: &InputEventInit) -> Option; + pub fn get_data(this: &InputEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `data` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] @@ -88,7 +88,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] #[wasm_bindgen(method, getter = "inputType")] - pub fn get_input_type(this: &InputEventInit) -> Option; + pub fn get_input_type(this: &InputEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `inputType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] diff --git a/crates/web-sys/src/features/gen_IntersectionObserver.rs b/crates/web-sys/src/features/gen_IntersectionObserver.rs index 8cd9ae34abe..371e3d76b3b 100644 --- a/crates/web-sys/src/features/gen_IntersectionObserver.rs +++ b/crates/web-sys/src/features/gen_IntersectionObserver.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] - pub fn root_margin(this: &IntersectionObserver) -> String; + pub fn root_margin(this: &IntersectionObserver) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "IntersectionObserver" , js_name = thresholds)] #[doc = "Getter for the `thresholds` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_IntersectionObserverInit.rs b/crates/web-sys/src/features/gen_IntersectionObserverInit.rs index 115d8359ff6..d959f7e4e72 100644 --- a/crates/web-sys/src/features/gen_IntersectionObserverInit.rs +++ b/crates/web-sys/src/features/gen_IntersectionObserverInit.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] #[wasm_bindgen(method, getter = "rootMargin")] - pub fn get_root_margin(this: &IntersectionObserverInit) -> Option; + pub fn get_root_margin(this: &IntersectionObserverInit) -> Option<::alloc::string::String>; #[doc = "Change the `rootMargin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] diff --git a/crates/web-sys/src/features/gen_JsonWebKey.rs b/crates/web-sys/src/features/gen_JsonWebKey.rs index 7969e461a34..c3ebdda3d67 100644 --- a/crates/web-sys/src/features/gen_JsonWebKey.rs +++ b/crates/web-sys/src/features/gen_JsonWebKey.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "alg")] - pub fn get_alg(this: &JsonWebKey) -> Option; + pub fn get_alg(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `alg` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "crv")] - pub fn get_crv(this: &JsonWebKey) -> Option; + pub fn get_crv(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `crv` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "d")] - pub fn get_d(this: &JsonWebKey) -> Option; + pub fn get_d(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "dp")] - pub fn get_dp(this: &JsonWebKey) -> Option; + pub fn get_dp(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `dp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "dq")] - pub fn get_dq(this: &JsonWebKey) -> Option; + pub fn get_dq(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `dq` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "e")] - pub fn get_e(this: &JsonWebKey) -> Option; + pub fn get_e(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `e` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -84,7 +84,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "k")] - pub fn get_k(this: &JsonWebKey) -> Option; + pub fn get_k(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `k` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -104,7 +104,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "kty")] - pub fn get_kty(this: &JsonWebKey) -> String; + pub fn get_kty(this: &JsonWebKey) -> ::alloc::string::String; #[doc = "Change the `kty` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -114,7 +114,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "n")] - pub fn get_n(this: &JsonWebKey) -> Option; + pub fn get_n(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `n` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -134,7 +134,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "p")] - pub fn get_p(this: &JsonWebKey) -> Option; + pub fn get_p(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `p` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -144,7 +144,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "q")] - pub fn get_q(this: &JsonWebKey) -> Option; + pub fn get_q(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `q` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -154,7 +154,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "qi")] - pub fn get_qi(this: &JsonWebKey) -> Option; + pub fn get_qi(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `qi` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -164,7 +164,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "use")] - pub fn get_use(this: &JsonWebKey) -> Option; + pub fn get_use(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `use` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -174,7 +174,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "x")] - pub fn get_x(this: &JsonWebKey) -> Option; + pub fn get_x(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `x` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] @@ -184,7 +184,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] #[wasm_bindgen(method, getter = "y")] - pub fn get_y(this: &JsonWebKey) -> Option; + pub fn get_y(this: &JsonWebKey) -> Option<::alloc::string::String>; #[doc = "Change the `y` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] diff --git a/crates/web-sys/src/features/gen_KeyAlgorithm.rs b/crates/web-sys/src/features/gen_KeyAlgorithm.rs index d7523f2da73..b68a4801f8f 100644 --- a/crates/web-sys/src/features/gen_KeyAlgorithm.rs +++ b/crates/web-sys/src/features/gen_KeyAlgorithm.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &KeyAlgorithm) -> String; + pub fn get_name(this: &KeyAlgorithm) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] diff --git a/crates/web-sys/src/features/gen_KeyFrameRequestEvent.rs b/crates/web-sys/src/features/gen_KeyFrameRequestEvent.rs index 537a35063ac..17595b6c55b 100644 --- a/crates/web-sys/src/features/gen_KeyFrameRequestEvent.rs +++ b/crates/web-sys/src/features/gen_KeyFrameRequestEvent.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn rid(this: &KeyFrameRequestEvent) -> Option; + pub fn rid(this: &KeyFrameRequestEvent) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[wasm_bindgen(catch, constructor, js_class = "KeyFrameRequestEvent")] #[doc = "The `new KeyFrameRequestEvent(..)` constructor, creating a new instance of `KeyFrameRequestEvent`."] diff --git a/crates/web-sys/src/features/gen_KeyboardEvent.rs b/crates/web-sys/src/features/gen_KeyboardEvent.rs index fbd20821366..fafaffc0c9b 100644 --- a/crates/web-sys/src/features/gen_KeyboardEvent.rs +++ b/crates/web-sys/src/features/gen_KeyboardEvent.rs @@ -81,14 +81,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] - pub fn key(this: &KeyboardEvent) -> String; + pub fn key(this: &KeyboardEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "KeyboardEvent" , js_name = code)] #[doc = "Getter for the `code` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] - pub fn code(this: &KeyboardEvent) -> String; + pub fn code(this: &KeyboardEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "KeyboardEvent")] #[doc = "The `new KeyboardEvent(..)` constructor, creating a new instance of `KeyboardEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_KeyboardEventInit.rs b/crates/web-sys/src/features/gen_KeyboardEventInit.rs index a7701695929..6321debf9ab 100644 --- a/crates/web-sys/src/features/gen_KeyboardEventInit.rs +++ b/crates/web-sys/src/features/gen_KeyboardEventInit.rs @@ -206,7 +206,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "code")] - pub fn get_code(this: &KeyboardEventInit) -> Option; + pub fn get_code(this: &KeyboardEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `code` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] @@ -226,7 +226,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] #[wasm_bindgen(method, getter = "key")] - pub fn get_key(this: &KeyboardEventInit) -> Option; + pub fn get_key(this: &KeyboardEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] diff --git a/crates/web-sys/src/features/gen_KeyframeAnimationOptions.rs b/crates/web-sys/src/features/gen_KeyframeAnimationOptions.rs index 8777d27a77b..17a15a0c694 100644 --- a/crates/web-sys/src/features/gen_KeyframeAnimationOptions.rs +++ b/crates/web-sys/src/features/gen_KeyframeAnimationOptions.rs @@ -78,7 +78,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &KeyframeAnimationOptions) -> Option; + pub fn get_easing(this: &KeyframeAnimationOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `easing` field of this object."] #[doc = ""] @@ -215,7 +215,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &KeyframeAnimationOptions) -> Option; + pub fn get_id(this: &KeyframeAnimationOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs b/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs index 4424b0391e4..2d16182a56d 100644 --- a/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs +++ b/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &KeyframeEffectOptions) -> Option; + pub fn get_easing(this: &KeyframeEffectOptions) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] diff --git a/crates/web-sys/src/features/gen_L10nElement.rs b/crates/web-sys/src/features/gen_L10nElement.rs index 38942a7baef..3547a5b1455 100644 --- a/crates/web-sys/src/features/gen_L10nElement.rs +++ b/crates/web-sys/src/features/gen_L10nElement.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "l10nAttrs")] - pub fn get_l10n_attrs(this: &L10nElement) -> Option; + pub fn get_l10n_attrs(this: &L10nElement) -> Option<::alloc::string::String>; #[doc = "Change the `l10nAttrs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "l10nId")] - pub fn get_l10n_id(this: &L10nElement) -> String; + pub fn get_l10n_id(this: &L10nElement) -> ::alloc::string::String; #[doc = "Change the `l10nId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "localName")] - pub fn get_local_name(this: &L10nElement) -> String; + pub fn get_local_name(this: &L10nElement) -> ::alloc::string::String; #[doc = "Change the `localName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "namespaceURI")] - pub fn get_namespace_uri(this: &L10nElement) -> String; + pub fn get_namespace_uri(this: &L10nElement) -> ::alloc::string::String; #[doc = "Change the `namespaceURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &L10nElement) -> Option; + pub fn get_type(this: &L10nElement) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] diff --git a/crates/web-sys/src/features/gen_L10nValue.rs b/crates/web-sys/src/features/gen_L10nValue.rs index 9c09c9aa438..11658dacb23 100644 --- a/crates/web-sys/src/features/gen_L10nValue.rs +++ b/crates/web-sys/src/features/gen_L10nValue.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] #[wasm_bindgen(method, getter = "value")] - pub fn get_value(this: &L10nValue) -> Option; + pub fn get_value(this: &L10nValue) -> Option<::alloc::string::String>; #[doc = "Change the `value` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] diff --git a/crates/web-sys/src/features/gen_LocaleInfo.rs b/crates/web-sys/src/features/gen_LocaleInfo.rs index b7c86104dd5..f48406db4fa 100644 --- a/crates/web-sys/src/features/gen_LocaleInfo.rs +++ b/crates/web-sys/src/features/gen_LocaleInfo.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] #[wasm_bindgen(method, getter = "direction")] - pub fn get_direction(this: &LocaleInfo) -> Option; + pub fn get_direction(this: &LocaleInfo) -> Option<::alloc::string::String>; #[doc = "Change the `direction` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] #[wasm_bindgen(method, getter = "locale")] - pub fn get_locale(this: &LocaleInfo) -> Option; + pub fn get_locale(this: &LocaleInfo) -> Option<::alloc::string::String>; #[doc = "Change the `locale` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] diff --git a/crates/web-sys/src/features/gen_Location.rs b/crates/web-sys/src/features/gen_Location.rs index f33f7471481..3b485fcba0e 100644 --- a/crates/web-sys/src/features/gen_Location.rs +++ b/crates/web-sys/src/features/gen_Location.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn href(this: &Location) -> Result; + pub fn href(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] @@ -32,14 +32,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn origin(this: &Location) -> Result; + pub fn origin(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Location" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn protocol(this: &Location) -> Result; + pub fn protocol(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] @@ -53,7 +53,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn host(this: &Location) -> Result; + pub fn host(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] @@ -67,7 +67,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn hostname(this: &Location) -> Result; + pub fn hostname(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] @@ -81,7 +81,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn port(this: &Location) -> Result; + pub fn port(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] @@ -95,7 +95,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn pathname(this: &Location) -> Result; + pub fn pathname(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] @@ -109,7 +109,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn search(this: &Location) -> Result; + pub fn search(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] @@ -123,7 +123,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Location`*"] - pub fn hash(this: &Location) -> Result; + pub fn hash(this: &Location) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Location" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Lock.rs b/crates/web-sys/src/features/gen_Lock.rs index 98b93739a91..785dc9d1801 100644 --- a/crates/web-sys/src/features/gen_Lock.rs +++ b/crates/web-sys/src/features/gen_Lock.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn name(this: &Lock) -> String; + pub fn name(this: &Lock) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "LockMode")] # [wasm_bindgen (structural , method , getter , js_class = "Lock" , js_name = mode)] diff --git a/crates/web-sys/src/features/gen_LockInfo.rs b/crates/web-sys/src/features/gen_LockInfo.rs index aa37143fa48..961a4dfe383 100644 --- a/crates/web-sys/src/features/gen_LockInfo.rs +++ b/crates/web-sys/src/features/gen_LockInfo.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "clientId")] - pub fn get_client_id(this: &LockInfo) -> Option; + pub fn get_client_id(this: &LockInfo) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `clientId` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &LockInfo) -> Option; + pub fn get_name(this: &LockInfo) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MathMlElement.rs b/crates/web-sys/src/features/gen_MathMlElement.rs index cd2ae11fa92..78824e3e751 100644 --- a/crates/web-sys/src/features/gen_MathMlElement.rs +++ b/crates/web-sys/src/features/gen_MathMlElement.rs @@ -1196,7 +1196,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MathMlElement`*"] - pub fn nonce(this: &MathMlElement) -> String; + pub fn nonce(this: &MathMlElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "MathMLElement" , js_name = nonce)] #[doc = "Setter for the `nonce` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaDeviceInfo.rs b/crates/web-sys/src/features/gen_MediaDeviceInfo.rs index e108c87544b..9de3988588e 100644 --- a/crates/web-sys/src/features/gen_MediaDeviceInfo.rs +++ b/crates/web-sys/src/features/gen_MediaDeviceInfo.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/deviceId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] - pub fn device_id(this: &MediaDeviceInfo) -> String; + pub fn device_id(this: &MediaDeviceInfo) -> ::alloc::string::String; #[cfg(feature = "MediaDeviceKind")] # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] @@ -33,14 +33,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] - pub fn label(this: &MediaDeviceInfo) -> String; + pub fn label(this: &MediaDeviceInfo) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaDeviceInfo" , js_name = groupId)] #[doc = "Getter for the `groupId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/groupId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] - pub fn group_id(this: &MediaDeviceInfo) -> String; + pub fn group_id(this: &MediaDeviceInfo) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "MediaDeviceInfo" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs b/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs index 296da0e21a1..f353c147a00 100644 --- a/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs +++ b/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initDataType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] - pub fn init_data_type(this: &MediaEncryptedEvent) -> String; + pub fn init_data_type(this: &MediaEncryptedEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "MediaEncryptedEvent" , js_name = initData)] #[doc = "Getter for the `initData` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaError.rs b/crates/web-sys/src/features/gen_MediaError.rs index e9427d21241..20bf3982829 100644 --- a/crates/web-sys/src/features/gen_MediaError.rs +++ b/crates/web-sys/src/features/gen_MediaError.rs @@ -25,7 +25,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] - pub fn message(this: &MediaError) -> String; + pub fn message(this: &MediaError) -> ::alloc::string::String; } impl MediaError { #[doc = "The `MediaError.MEDIA_ERR_ABORTED` const."] diff --git a/crates/web-sys/src/features/gen_MediaImage.rs b/crates/web-sys/src/features/gen_MediaImage.rs index 151349e85ea..d09ff96418b 100644 --- a/crates/web-sys/src/features/gen_MediaImage.rs +++ b/crates/web-sys/src/features/gen_MediaImage.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "sizes")] - pub fn get_sizes(this: &MediaImage) -> Option; + pub fn get_sizes(this: &MediaImage) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `sizes` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "src")] - pub fn get_src(this: &MediaImage) -> String; + pub fn get_src(this: &MediaImage) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `src` field of this object."] #[doc = ""] @@ -58,7 +58,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &MediaImage) -> Option; + pub fn get_type(this: &MediaImage) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs b/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs index 33419e081c3..cb666ee08ea 100644 --- a/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] #[wasm_bindgen(method, getter = "initDataType")] - pub fn get_init_data_type(this: &MediaKeyNeededEventInit) -> Option; + pub fn get_init_data_type(this: &MediaKeyNeededEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `initDataType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] diff --git a/crates/web-sys/src/features/gen_MediaKeySession.rs b/crates/web-sys/src/features/gen_MediaKeySession.rs index e44f671b90e..310943dc192 100644 --- a/crates/web-sys/src/features/gen_MediaKeySession.rs +++ b/crates/web-sys/src/features/gen_MediaKeySession.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/sessionId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] - pub fn session_id(this: &MediaKeySession) -> String; + pub fn session_id(this: &MediaKeySession) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaKeySession" , js_name = expiration)] #[doc = "Getter for the `expiration` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs b/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs index fd61076c4ac..d5f7d0b1017 100644 --- a/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs +++ b/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/keySystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] - pub fn key_system(this: &MediaKeySystemAccess) -> String; + pub fn key_system(this: &MediaKeySystemAccess) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "MediaKeySystemAccess" , js_name = createMediaKeys)] #[doc = "The `createMediaKeys()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs b/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs index e110b3e1ec1..ef8f2e3c915 100644 --- a/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs +++ b/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] #[wasm_bindgen(method, getter = "label")] - pub fn get_label(this: &MediaKeySystemConfiguration) -> Option; + pub fn get_label(this: &MediaKeySystemConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `label` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] diff --git a/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs b/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs index 7740ba74e30..ebdb9451d47 100644 --- a/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs +++ b/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs @@ -14,7 +14,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] #[wasm_bindgen(method, getter = "contentType")] - pub fn get_content_type(this: &MediaKeySystemMediaCapability) -> Option; + pub fn get_content_type( + this: &MediaKeySystemMediaCapability, + ) -> Option<::alloc::string::String>; #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] @@ -24,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] #[wasm_bindgen(method, getter = "robustness")] - pub fn get_robustness(this: &MediaKeySystemMediaCapability) -> Option; + pub fn get_robustness(this: &MediaKeySystemMediaCapability) -> Option<::alloc::string::String>; #[doc = "Change the `robustness` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] diff --git a/crates/web-sys/src/features/gen_MediaKeys.rs b/crates/web-sys/src/features/gen_MediaKeys.rs index 2bd7edacca7..c9df498a7d5 100644 --- a/crates/web-sys/src/features/gen_MediaKeys.rs +++ b/crates/web-sys/src/features/gen_MediaKeys.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/keySystem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] - pub fn key_system(this: &MediaKeys) -> String; + pub fn key_system(this: &MediaKeys) -> ::alloc::string::String; #[cfg(feature = "MediaKeySession")] # [wasm_bindgen (catch , method , structural , js_class = "MediaKeys" , js_name = createSession)] #[doc = "The `createSession()` method."] diff --git a/crates/web-sys/src/features/gen_MediaKeysPolicy.rs b/crates/web-sys/src/features/gen_MediaKeysPolicy.rs index 26f5b184200..99c26cb234b 100644 --- a/crates/web-sys/src/features/gen_MediaKeysPolicy.rs +++ b/crates/web-sys/src/features/gen_MediaKeysPolicy.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] #[wasm_bindgen(method, getter = "minHdcpVersion")] - pub fn get_min_hdcp_version(this: &MediaKeysPolicy) -> Option; + pub fn get_min_hdcp_version(this: &MediaKeysPolicy) -> Option<::alloc::string::String>; #[doc = "Change the `minHdcpVersion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] diff --git a/crates/web-sys/src/features/gen_MediaList.rs b/crates/web-sys/src/features/gen_MediaList.rs index a06c69e6f38..4416d737d62 100644 --- a/crates/web-sys/src/features/gen_MediaList.rs +++ b/crates/web-sys/src/features/gen_MediaList.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/mediaText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] - pub fn media_text(this: &MediaList) -> String; + pub fn media_text(this: &MediaList) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "MediaList" , js_name = mediaText)] #[doc = "Setter for the `mediaText` field of this object."] #[doc = ""] @@ -53,12 +53,12 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/item)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] - pub fn item(this: &MediaList, index: u32) -> Option; + pub fn item(this: &MediaList, index: u32) -> Option<::alloc::string::String>; #[wasm_bindgen(method, structural, js_class = "MediaList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] - pub fn get(this: &MediaList, index: u32) -> Option; + pub fn get(this: &MediaList, index: u32) -> Option<::alloc::string::String>; } diff --git a/crates/web-sys/src/features/gen_MediaMetadata.rs b/crates/web-sys/src/features/gen_MediaMetadata.rs index 57174ef7c5f..3825e029d87 100644 --- a/crates/web-sys/src/features/gen_MediaMetadata.rs +++ b/crates/web-sys/src/features/gen_MediaMetadata.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn title(this: &MediaMetadata) -> String; + pub fn title(this: &MediaMetadata) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "MediaMetadata" , js_name = title)] #[doc = "Setter for the `title` field of this object."] @@ -48,7 +48,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn artist(this: &MediaMetadata) -> String; + pub fn artist(this: &MediaMetadata) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "MediaMetadata" , js_name = artist)] #[doc = "Setter for the `artist` field of this object."] @@ -70,7 +70,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn album(this: &MediaMetadata) -> String; + pub fn album(this: &MediaMetadata) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , setter , js_class = "MediaMetadata" , js_name = album)] #[doc = "Setter for the `album` field of this object."] diff --git a/crates/web-sys/src/features/gen_MediaMetadataInit.rs b/crates/web-sys/src/features/gen_MediaMetadataInit.rs index f2deaff2ec3..45f5cf4fcb9 100644 --- a/crates/web-sys/src/features/gen_MediaMetadataInit.rs +++ b/crates/web-sys/src/features/gen_MediaMetadataInit.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "album")] - pub fn get_album(this: &MediaMetadataInit) -> Option; + pub fn get_album(this: &MediaMetadataInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `album` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "artist")] - pub fn get_artist(this: &MediaMetadataInit) -> Option; + pub fn get_artist(this: &MediaMetadataInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `artist` field of this object."] #[doc = ""] @@ -76,7 +76,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "title")] - pub fn get_title(this: &MediaMetadataInit) -> Option; + pub fn get_title(this: &MediaMetadataInit) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `title` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaQueryList.rs b/crates/web-sys/src/features/gen_MediaQueryList.rs index 9465c38278b..938c30aba8f 100644 --- a/crates/web-sys/src/features/gen_MediaQueryList.rs +++ b/crates/web-sys/src/features/gen_MediaQueryList.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] - pub fn media(this: &MediaQueryList) -> String; + pub fn media(this: &MediaQueryList) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryList" , js_name = matches)] #[doc = "Getter for the `matches` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaQueryListEvent.rs b/crates/web-sys/src/features/gen_MediaQueryListEvent.rs index 8733d985bd2..80f51a83391 100644 --- a/crates/web-sys/src/features/gen_MediaQueryListEvent.rs +++ b/crates/web-sys/src/features/gen_MediaQueryListEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] - pub fn media(this: &MediaQueryListEvent) -> String; + pub fn media(this: &MediaQueryListEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaQueryListEvent" , js_name = matches)] #[doc = "Getter for the `matches` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs b/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs index b656e13b75a..bd8d9554b3c 100644 --- a/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs +++ b/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] #[wasm_bindgen(method, getter = "media")] - pub fn get_media(this: &MediaQueryListEventInit) -> Option; + pub fn get_media(this: &MediaQueryListEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `media` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] diff --git a/crates/web-sys/src/features/gen_MediaRecorder.rs b/crates/web-sys/src/features/gen_MediaRecorder.rs index af36d2e65f7..7cb779d4c65 100644 --- a/crates/web-sys/src/features/gen_MediaRecorder.rs +++ b/crates/web-sys/src/features/gen_MediaRecorder.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] - pub fn mime_type(this: &MediaRecorder) -> String; + pub fn mime_type(this: &MediaRecorder) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaRecorder" , js_name = ondataavailable)] #[doc = "Getter for the `ondataavailable` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaRecorderOptions.rs b/crates/web-sys/src/features/gen_MediaRecorderOptions.rs index 2cadbaa05ac..7346fa75627 100644 --- a/crates/web-sys/src/features/gen_MediaRecorderOptions.rs +++ b/crates/web-sys/src/features/gen_MediaRecorderOptions.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] #[wasm_bindgen(method, getter = "mimeType")] - pub fn get_mime_type(this: &MediaRecorderOptions) -> Option; + pub fn get_mime_type(this: &MediaRecorderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] diff --git a/crates/web-sys/src/features/gen_MediaStream.rs b/crates/web-sys/src/features/gen_MediaStream.rs index 9e78ed07848..788c2bf7f4e 100644 --- a/crates/web-sys/src/features/gen_MediaStream.rs +++ b/crates/web-sys/src/features/gen_MediaStream.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] - pub fn id(this: &MediaStream) -> String; + pub fn id(this: &MediaStream) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStream" , js_name = active)] #[doc = "Getter for the `active` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaStreamConstraints.rs b/crates/web-sys/src/features/gen_MediaStreamConstraints.rs index 0a666f793b5..509442d58cb 100644 --- a/crates/web-sys/src/features/gen_MediaStreamConstraints.rs +++ b/crates/web-sys/src/features/gen_MediaStreamConstraints.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] #[wasm_bindgen(method, getter = "peerIdentity")] - pub fn get_peer_identity(this: &MediaStreamConstraints) -> Option; + pub fn get_peer_identity(this: &MediaStreamConstraints) -> Option<::alloc::string::String>; #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] diff --git a/crates/web-sys/src/features/gen_MediaStreamError.rs b/crates/web-sys/src/features/gen_MediaStreamError.rs index 7c4a544d89c..971f801b6b0 100644 --- a/crates/web-sys/src/features/gen_MediaStreamError.rs +++ b/crates/web-sys/src/features/gen_MediaStreamError.rs @@ -18,19 +18,19 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] - pub fn name(this: &MediaStreamError) -> String; + pub fn name(this: &MediaStreamError) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] - pub fn message(this: &MediaStreamError) -> Option; + pub fn message(this: &MediaStreamError) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamError" , js_name = constraint)] #[doc = "Getter for the `constraint` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/constraint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] - pub fn constraint(this: &MediaStreamError) -> Option; + pub fn constraint(this: &MediaStreamError) -> Option<::alloc::string::String>; } diff --git a/crates/web-sys/src/features/gen_MediaStreamTrack.rs b/crates/web-sys/src/features/gen_MediaStreamTrack.rs index bb8ac52e15f..369b58a7d8c 100644 --- a/crates/web-sys/src/features/gen_MediaStreamTrack.rs +++ b/crates/web-sys/src/features/gen_MediaStreamTrack.rs @@ -18,21 +18,21 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] - pub fn kind(this: &MediaStreamTrack) -> String; + pub fn kind(this: &MediaStreamTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] - pub fn id(this: &MediaStreamTrack) -> String; + pub fn id(this: &MediaStreamTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] - pub fn label(this: &MediaStreamTrack) -> String; + pub fn label(this: &MediaStreamTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MediaStreamTrack" , js_name = enabled)] #[doc = "Getter for the `enabled` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaStreamTrackGeneratorInit.rs b/crates/web-sys/src/features/gen_MediaStreamTrackGeneratorInit.rs index 67d0fcd0431..6c943531a80 100644 --- a/crates/web-sys/src/features/gen_MediaStreamTrackGeneratorInit.rs +++ b/crates/web-sys/src/features/gen_MediaStreamTrackGeneratorInit.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "kind")] - pub fn get_kind(this: &MediaStreamTrackGeneratorInit) -> String; + pub fn get_kind(this: &MediaStreamTrackGeneratorInit) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `kind` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaTrackCapabilities.rs b/crates/web-sys/src/features/gen_MediaTrackCapabilities.rs index 85d23016f20..08378bdcecf 100644 --- a/crates/web-sys/src/features/gen_MediaTrackCapabilities.rs +++ b/crates/web-sys/src/features/gen_MediaTrackCapabilities.rs @@ -98,7 +98,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "deviceId")] - pub fn get_device_id(this: &MediaTrackCapabilities) -> Option; + pub fn get_device_id(this: &MediaTrackCapabilities) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `deviceId` field of this object."] #[doc = ""] @@ -172,7 +172,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "groupId")] - pub fn get_group_id(this: &MediaTrackCapabilities) -> Option; + pub fn get_group_id(this: &MediaTrackCapabilities) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `groupId` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs b/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs index 2624e64f81a..3654baba0bf 100644 --- a/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs +++ b/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs @@ -94,7 +94,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] #[wasm_bindgen(method, getter = "mediaSource")] - pub fn get_media_source(this: &MediaTrackConstraintSet) -> Option; + pub fn get_media_source(this: &MediaTrackConstraintSet) -> Option<::alloc::string::String>; #[doc = "Change the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] diff --git a/crates/web-sys/src/features/gen_MediaTrackConstraints.rs b/crates/web-sys/src/features/gen_MediaTrackConstraints.rs index 6d40272de64..f73bee2e8b0 100644 --- a/crates/web-sys/src/features/gen_MediaTrackConstraints.rs +++ b/crates/web-sys/src/features/gen_MediaTrackConstraints.rs @@ -94,7 +94,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] #[wasm_bindgen(method, getter = "mediaSource")] - pub fn get_media_source(this: &MediaTrackConstraints) -> Option; + pub fn get_media_source(this: &MediaTrackConstraints) -> Option<::alloc::string::String>; #[doc = "Change the `mediaSource` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] diff --git a/crates/web-sys/src/features/gen_MediaTrackSettings.rs b/crates/web-sys/src/features/gen_MediaTrackSettings.rs index 455fcad4822..d7b63e11026 100644 --- a/crates/web-sys/src/features/gen_MediaTrackSettings.rs +++ b/crates/web-sys/src/features/gen_MediaTrackSettings.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "deviceId")] - pub fn get_device_id(this: &MediaTrackSettings) -> Option; + pub fn get_device_id(this: &MediaTrackSettings) -> Option<::alloc::string::String>; #[doc = "Change the `deviceId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] #[wasm_bindgen(method, getter = "facingMode")] - pub fn get_facing_mode(this: &MediaTrackSettings) -> Option; + pub fn get_facing_mode(this: &MediaTrackSettings) -> Option<::alloc::string::String>; #[doc = "Change the `facingMode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] diff --git a/crates/web-sys/src/features/gen_MemoryAttribution.rs b/crates/web-sys/src/features/gen_MemoryAttribution.rs index be7056aa458..1bee0c80767 100644 --- a/crates/web-sys/src/features/gen_MemoryAttribution.rs +++ b/crates/web-sys/src/features/gen_MemoryAttribution.rs @@ -42,7 +42,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "scope")] - pub fn get_scope(this: &MemoryAttribution) -> Option; + pub fn get_scope(this: &MemoryAttribution) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `scope` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "url")] - pub fn get_url(this: &MemoryAttribution) -> Option; + pub fn get_url(this: &MemoryAttribution) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `url` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MemoryAttributionContainer.rs b/crates/web-sys/src/features/gen_MemoryAttributionContainer.rs index c7a6bb4c1e8..07dcd7828b3 100644 --- a/crates/web-sys/src/features/gen_MemoryAttributionContainer.rs +++ b/crates/web-sys/src/features/gen_MemoryAttributionContainer.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &MemoryAttributionContainer) -> Option; + pub fn get_id(this: &MemoryAttributionContainer) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "src")] - pub fn get_src(this: &MemoryAttributionContainer) -> Option; + pub fn get_src(this: &MemoryAttributionContainer) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `src` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MessageEvent.rs b/crates/web-sys/src/features/gen_MessageEvent.rs index 38843a95b19..1afdf3413f1 100644 --- a/crates/web-sys/src/features/gen_MessageEvent.rs +++ b/crates/web-sys/src/features/gen_MessageEvent.rs @@ -25,14 +25,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] - pub fn origin(this: &MessageEvent) -> String; + pub fn origin(this: &MessageEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = lastEventId)] #[doc = "Getter for the `lastEventId` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/lastEventId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] - pub fn last_event_id(this: &MessageEvent) -> String; + pub fn last_event_id(this: &MessageEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MessageEvent" , js_name = source)] #[doc = "Getter for the `source` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MessageEventInit.rs b/crates/web-sys/src/features/gen_MessageEventInit.rs index 82a6cfe5cec..4f96b0cc6c3 100644 --- a/crates/web-sys/src/features/gen_MessageEventInit.rs +++ b/crates/web-sys/src/features/gen_MessageEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "lastEventId")] - pub fn get_last_event_id(this: &MessageEventInit) -> Option; + pub fn get_last_event_id(this: &MessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `lastEventId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] #[wasm_bindgen(method, getter = "origin")] - pub fn get_origin(this: &MessageEventInit) -> Option; + pub fn get_origin(this: &MessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] diff --git a/crates/web-sys/src/features/gen_MidiPort.rs b/crates/web-sys/src/features/gen_MidiPort.rs index e34ef80680c..9a8393546ca 100644 --- a/crates/web-sys/src/features/gen_MidiPort.rs +++ b/crates/web-sys/src/features/gen_MidiPort.rs @@ -18,28 +18,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] - pub fn id(this: &MidiPort) -> String; + pub fn id(this: &MidiPort) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = manufacturer)] #[doc = "Getter for the `manufacturer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/manufacturer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] - pub fn manufacturer(this: &MidiPort) -> Option; + pub fn manufacturer(this: &MidiPort) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] - pub fn name(this: &MidiPort) -> Option; + pub fn name(this: &MidiPort) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = version)] #[doc = "Getter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] - pub fn version(this: &MidiPort) -> Option; + pub fn version(this: &MidiPort) -> Option<::alloc::string::String>; #[cfg(feature = "MidiPortType")] # [wasm_bindgen (structural , method , getter , js_class = "MIDIPort" , js_name = type)] #[doc = "Getter for the `type` field of this object."] diff --git a/crates/web-sys/src/features/gen_MimeType.rs b/crates/web-sys/src/features/gen_MimeType.rs index 02abadddd17..93f6664bfac 100644 --- a/crates/web-sys/src/features/gen_MimeType.rs +++ b/crates/web-sys/src/features/gen_MimeType.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/description)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] - pub fn description(this: &MimeType) -> String; + pub fn description(this: &MimeType) -> ::alloc::string::String; #[cfg(feature = "Plugin")] # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = enabledPlugin)] #[doc = "Getter for the `enabledPlugin` field of this object."] @@ -33,12 +33,12 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/suffixes)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] - pub fn suffixes(this: &MimeType) -> String; + pub fn suffixes(this: &MimeType) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MimeType" , js_name = type)] #[doc = "Getter for the `type` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] - pub fn type_(this: &MimeType) -> String; + pub fn type_(this: &MimeType) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_MouseEvent.rs b/crates/web-sys/src/features/gen_MouseEvent.rs index ad7826a20d4..96f448f165b 100644 --- a/crates/web-sys/src/features/gen_MouseEvent.rs +++ b/crates/web-sys/src/features/gen_MouseEvent.rs @@ -124,7 +124,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/region)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] - pub fn region(this: &MouseEvent) -> Option; + pub fn region(this: &MouseEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "MouseEvent" , js_name = movementX)] #[doc = "Getter for the `movementX` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MutationEvent.rs b/crates/web-sys/src/features/gen_MutationEvent.rs index b21ae79eefc..cd3b3d34aed 100644 --- a/crates/web-sys/src/features/gen_MutationEvent.rs +++ b/crates/web-sys/src/features/gen_MutationEvent.rs @@ -26,21 +26,21 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/prevValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] - pub fn prev_value(this: &MutationEvent) -> String; + pub fn prev_value(this: &MutationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = newValue)] #[doc = "Getter for the `newValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/newValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] - pub fn new_value(this: &MutationEvent) -> String; + pub fn new_value(this: &MutationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = attrName)] #[doc = "Getter for the `attrName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/attrName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] - pub fn attr_name(this: &MutationEvent) -> String; + pub fn attr_name(this: &MutationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "MutationEvent" , js_name = attrChange)] #[doc = "Getter for the `attrChange` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_MutationRecord.rs b/crates/web-sys/src/features/gen_MutationRecord.rs index 3d6ca83da94..f898c07d02c 100644 --- a/crates/web-sys/src/features/gen_MutationRecord.rs +++ b/crates/web-sys/src/features/gen_MutationRecord.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] - pub fn type_(this: &MutationRecord) -> String; + pub fn type_(this: &MutationRecord) -> ::alloc::string::String; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = target)] #[doc = "Getter for the `target` field of this object."] @@ -65,19 +65,19 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] - pub fn attribute_name(this: &MutationRecord) -> Option; + pub fn attribute_name(this: &MutationRecord) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = attributeNamespace)] #[doc = "Getter for the `attributeNamespace` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeNamespace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] - pub fn attribute_namespace(this: &MutationRecord) -> Option; + pub fn attribute_namespace(this: &MutationRecord) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "MutationRecord" , js_name = oldValue)] #[doc = "Getter for the `oldValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/oldValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] - pub fn old_value(this: &MutationRecord) -> Option; + pub fn old_value(this: &MutationRecord) -> Option<::alloc::string::String>; } diff --git a/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs b/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs index 7f8f52c40f6..733fed4acbd 100644 --- a/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs +++ b/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] #[wasm_bindgen(method, getter = "encoding")] - pub fn get_encoding(this: &NativeOsFileReadOptions) -> Option; + pub fn get_encoding(this: &NativeOsFileReadOptions) -> Option<::alloc::string::String>; #[doc = "Change the `encoding` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] diff --git a/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs b/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs index 6215a0b8529..44e685503ed 100644 --- a/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs +++ b/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, getter = "backupTo")] - pub fn get_backup_to(this: &NativeOsFileWriteAtomicOptions) -> Option; + pub fn get_backup_to(this: &NativeOsFileWriteAtomicOptions) -> Option<::alloc::string::String>; #[doc = "Change the `backupTo` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] #[wasm_bindgen(method, getter = "tmpPath")] - pub fn get_tmp_path(this: &NativeOsFileWriteAtomicOptions) -> Option; + pub fn get_tmp_path(this: &NativeOsFileWriteAtomicOptions) -> Option<::alloc::string::String>; #[doc = "Change the `tmpPath` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] diff --git a/crates/web-sys/src/features/gen_Navigator.rs b/crates/web-sys/src/features/gen_Navigator.rs index 374cd3a4cf6..fa2913ade18 100644 --- a/crates/web-sys/src/features/gen_Navigator.rs +++ b/crates/web-sys/src/features/gen_Navigator.rs @@ -50,7 +50,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn do_not_track(this: &Navigator) -> String; + pub fn do_not_track(this: &Navigator) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = maxTouchPoints)] #[doc = "Getter for the `maxTouchPoints` field of this object."] #[doc = ""] @@ -261,49 +261,49 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appCodeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn app_code_name(this: &Navigator) -> Result; + pub fn app_code_name(this: &Navigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = appName)] #[doc = "Getter for the `appName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn app_name(this: &Navigator) -> String; + pub fn app_name(this: &Navigator) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = appVersion)] #[doc = "Getter for the `appVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn app_version(this: &Navigator) -> Result; + pub fn app_version(this: &Navigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = platform)] #[doc = "Getter for the `platform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn platform(this: &Navigator) -> Result; + pub fn platform(this: &Navigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "Navigator" , js_name = userAgent)] #[doc = "Getter for the `userAgent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn user_agent(this: &Navigator) -> Result; + pub fn user_agent(this: &Navigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = product)] #[doc = "Getter for the `product` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/product)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn product(this: &Navigator) -> String; + pub fn product(this: &Navigator) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] - pub fn language(this: &Navigator) -> Option; + pub fn language(this: &Navigator) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Navigator" , js_name = languages)] #[doc = "Getter for the `languages` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NavigatorUaBrandVersion.rs b/crates/web-sys/src/features/gen_NavigatorUaBrandVersion.rs index 05be8c4f94f..b78201b704a 100644 --- a/crates/web-sys/src/features/gen_NavigatorUaBrandVersion.rs +++ b/crates/web-sys/src/features/gen_NavigatorUaBrandVersion.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "brand")] - pub fn get_brand(this: &NavigatorUaBrandVersion) -> Option; + pub fn get_brand(this: &NavigatorUaBrandVersion) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `brand` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "version")] - pub fn get_version(this: &NavigatorUaBrandVersion) -> Option; + pub fn get_version(this: &NavigatorUaBrandVersion) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `version` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NavigatorUaData.rs b/crates/web-sys/src/features/gen_NavigatorUaData.rs index 8dc54746be6..c1a93668363 100644 --- a/crates/web-sys/src/features/gen_NavigatorUaData.rs +++ b/crates/web-sys/src/features/gen_NavigatorUaData.rs @@ -48,7 +48,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn platform(this: &NavigatorUaData) -> String; + pub fn platform(this: &NavigatorUaData) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (method , structural , js_class = "NavigatorUAData" , js_name = getHighEntropyValues)] #[doc = "The `getHighEntropyValues()` method."] diff --git a/crates/web-sys/src/features/gen_NetworkCommandOptions.rs b/crates/web-sys/src/features/gen_NetworkCommandOptions.rs index 0bac6a26bec..1cb911575c8 100644 --- a/crates/web-sys/src/features/gen_NetworkCommandOptions.rs +++ b/crates/web-sys/src/features/gen_NetworkCommandOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "cmd")] - pub fn get_cmd(this: &NetworkCommandOptions) -> Option; + pub fn get_cmd(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `cmd` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -24,7 +24,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "curExternalIfname")] - pub fn get_cur_external_ifname(this: &NetworkCommandOptions) -> Option; + pub fn get_cur_external_ifname(this: &NetworkCommandOptions) + -> Option<::alloc::string::String>; #[doc = "Change the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -34,7 +35,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "curInternalIfname")] - pub fn get_cur_internal_ifname(this: &NetworkCommandOptions) -> Option; + pub fn get_cur_internal_ifname(this: &NetworkCommandOptions) + -> Option<::alloc::string::String>; #[doc = "Change the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -44,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "dns1")] - pub fn get_dns1(this: &NetworkCommandOptions) -> Option; + pub fn get_dns1(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns1` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -64,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "dns2")] - pub fn get_dns2(this: &NetworkCommandOptions) -> Option; + pub fn get_dns2(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns2` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -94,7 +96,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "domain")] - pub fn get_domain(this: &NetworkCommandOptions) -> Option; + pub fn get_domain(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -124,7 +126,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "endIp")] - pub fn get_end_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_end_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `endIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -134,7 +136,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "externalIfname")] - pub fn get_external_ifname(this: &NetworkCommandOptions) -> Option; + pub fn get_external_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `externalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -144,7 +146,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "gateway")] - pub fn get_gateway(this: &NetworkCommandOptions) -> Option; + pub fn get_gateway(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `gateway` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -184,7 +186,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "ifname")] - pub fn get_ifname(this: &NetworkCommandOptions) -> Option; + pub fn get_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ifname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -204,7 +206,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "internalIfname")] - pub fn get_internal_ifname(this: &NetworkCommandOptions) -> Option; + pub fn get_internal_ifname(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `internalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -214,7 +216,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "ip")] - pub fn get_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ip` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -234,7 +236,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "key")] - pub fn get_key(this: &NetworkCommandOptions) -> Option; + pub fn get_key(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -244,7 +246,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "link")] - pub fn get_link(this: &NetworkCommandOptions) -> Option; + pub fn get_link(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `link` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -264,7 +266,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "maskLength")] - pub fn get_mask_length(this: &NetworkCommandOptions) -> Option; + pub fn get_mask_length(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `maskLength` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -274,7 +276,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "mode")] - pub fn get_mode(this: &NetworkCommandOptions) -> Option; + pub fn get_mode(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `mode` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -294,7 +296,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "preExternalIfname")] - pub fn get_pre_external_ifname(this: &NetworkCommandOptions) -> Option; + pub fn get_pre_external_ifname(this: &NetworkCommandOptions) + -> Option<::alloc::string::String>; #[doc = "Change the `preExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -304,7 +307,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "preInternalIfname")] - pub fn get_pre_internal_ifname(this: &NetworkCommandOptions) -> Option; + pub fn get_pre_internal_ifname(this: &NetworkCommandOptions) + -> Option<::alloc::string::String>; #[doc = "Change the `preInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -314,7 +318,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "prefix")] - pub fn get_prefix(this: &NetworkCommandOptions) -> Option; + pub fn get_prefix(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `prefix` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -344,7 +348,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "security")] - pub fn get_security(this: &NetworkCommandOptions) -> Option; + pub fn get_security(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `security` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -354,7 +358,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "serverIp")] - pub fn get_server_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_server_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `serverIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -364,7 +368,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "ssid")] - pub fn get_ssid(this: &NetworkCommandOptions) -> Option; + pub fn get_ssid(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ssid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -374,7 +378,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "startIp")] - pub fn get_start_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_start_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `startIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -394,7 +398,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "usbEndIp")] - pub fn get_usb_end_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_usb_end_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `usbEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -404,7 +408,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "usbStartIp")] - pub fn get_usb_start_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_usb_start_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `usbStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -414,7 +418,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "wifiEndIp")] - pub fn get_wifi_end_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_wifi_end_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `wifiEndIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -424,7 +428,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "wifiStartIp")] - pub fn get_wifi_start_ip(this: &NetworkCommandOptions) -> Option; + pub fn get_wifi_start_ip(this: &NetworkCommandOptions) -> Option<::alloc::string::String>; #[doc = "Change the `wifiStartIp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] @@ -434,7 +438,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] #[wasm_bindgen(method, getter = "wifictrlinterfacename")] - pub fn get_wifictrlinterfacename(this: &NetworkCommandOptions) -> Option; + pub fn get_wifictrlinterfacename( + this: &NetworkCommandOptions, + ) -> Option<::alloc::string::String>; #[doc = "Change the `wifictrlinterfacename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] diff --git a/crates/web-sys/src/features/gen_NetworkResultOptions.rs b/crates/web-sys/src/features/gen_NetworkResultOptions.rs index 4f456605968..4d508d47c06 100644 --- a/crates/web-sys/src/features/gen_NetworkResultOptions.rs +++ b/crates/web-sys/src/features/gen_NetworkResultOptions.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "curExternalIfname")] - pub fn get_cur_external_ifname(this: &NetworkResultOptions) -> Option; + pub fn get_cur_external_ifname(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `curExternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "curInternalIfname")] - pub fn get_cur_internal_ifname(this: &NetworkResultOptions) -> Option; + pub fn get_cur_internal_ifname(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `curInternalIfname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "dns1_str")] - pub fn get_dns1_str(this: &NetworkResultOptions) -> Option; + pub fn get_dns1_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns1_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "dns2_str")] - pub fn get_dns2_str(this: &NetworkResultOptions) -> Option; + pub fn get_dns2_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `dns2_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -104,7 +104,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "flag")] - pub fn get_flag(this: &NetworkResultOptions) -> Option; + pub fn get_flag(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `flag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -124,7 +124,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "gateway_str")] - pub fn get_gateway_str(this: &NetworkResultOptions) -> Option; + pub fn get_gateway_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `gateway_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -154,7 +154,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "ipAddr")] - pub fn get_ip_addr(this: &NetworkResultOptions) -> Option; + pub fn get_ip_addr(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ipAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -174,7 +174,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "ipaddr_str")] - pub fn get_ipaddr_str(this: &NetworkResultOptions) -> Option; + pub fn get_ipaddr_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `ipaddr_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -194,7 +194,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "macAddr")] - pub fn get_mac_addr(this: &NetworkResultOptions) -> Option; + pub fn get_mac_addr(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `macAddr` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -214,7 +214,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "mask_str")] - pub fn get_mask_str(this: &NetworkResultOptions) -> Option; + pub fn get_mask_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `mask_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -224,7 +224,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "netId")] - pub fn get_net_id(this: &NetworkResultOptions) -> Option; + pub fn get_net_id(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `netId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -244,7 +244,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "reason")] - pub fn get_reason(this: &NetworkResultOptions) -> Option; + pub fn get_reason(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `reason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -254,7 +254,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "reply")] - pub fn get_reply(this: &NetworkResultOptions) -> Option; + pub fn get_reply(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `reply` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -284,7 +284,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "resultReason")] - pub fn get_result_reason(this: &NetworkResultOptions) -> Option; + pub fn get_result_reason(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `resultReason` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -304,7 +304,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "route")] - pub fn get_route(this: &NetworkResultOptions) -> Option; + pub fn get_route(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `route` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -324,7 +324,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "server_str")] - pub fn get_server_str(this: &NetworkResultOptions) -> Option; + pub fn get_server_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `server_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -344,7 +344,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "topic")] - pub fn get_topic(this: &NetworkResultOptions) -> Option; + pub fn get_topic(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `topic` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] @@ -354,7 +354,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] #[wasm_bindgen(method, getter = "vendor_str")] - pub fn get_vendor_str(this: &NetworkResultOptions) -> Option; + pub fn get_vendor_str(this: &NetworkResultOptions) -> Option<::alloc::string::String>; #[doc = "Change the `vendor_str` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] diff --git a/crates/web-sys/src/features/gen_Node.rs b/crates/web-sys/src/features/gen_Node.rs index 32c5b8d7b25..a2a0ad51b64 100644 --- a/crates/web-sys/src/features/gen_Node.rs +++ b/crates/web-sys/src/features/gen_Node.rs @@ -25,14 +25,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] - pub fn node_name(this: &Node) -> String; + pub fn node_name(this: &Node) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "Node" , js_name = baseURI)] #[doc = "Getter for the `baseURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/baseURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] - pub fn base_uri(this: &Node) -> Result, JsValue>; + pub fn base_uri(this: &Node) -> Result, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "Node" , js_name = isConnected)] #[doc = "Getter for the `isConnected` field of this object."] #[doc = ""] @@ -105,7 +105,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] - pub fn node_value(this: &Node) -> Option; + pub fn node_value(this: &Node) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "Node" , js_name = nodeValue)] #[doc = "Setter for the `nodeValue` field of this object."] #[doc = ""] @@ -119,7 +119,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] - pub fn text_content(this: &Node) -> Option; + pub fn text_content(this: &Node) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "Node" , js_name = textContent)] #[doc = "Setter for the `textContent` field of this object."] #[doc = ""] @@ -218,14 +218,17 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lookupNamespaceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] - pub fn lookup_namespace_uri(this: &Node, prefix: Option<&str>) -> Option; + pub fn lookup_namespace_uri( + this: &Node, + prefix: Option<&str>, + ) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = lookupPrefix)] #[doc = "The `lookupPrefix()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lookupPrefix)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`*"] - pub fn lookup_prefix(this: &Node, namespace: Option<&str>) -> Option; + pub fn lookup_prefix(this: &Node, namespace: Option<&str>) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "Node" , js_name = normalize)] #[doc = "The `normalize()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Notification.rs b/crates/web-sys/src/features/gen_Notification.rs index e5f9024a5a4..b2d9394677f 100644 --- a/crates/web-sys/src/features/gen_Notification.rs +++ b/crates/web-sys/src/features/gen_Notification.rs @@ -89,7 +89,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn title(this: &Notification) -> String; + pub fn title(this: &Notification) -> ::alloc::string::String; #[cfg(feature = "NotificationDirection")] # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = dir)] #[doc = "Getter for the `dir` field of this object."] @@ -104,42 +104,42 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn lang(this: &Notification) -> Option; + pub fn lang(this: &Notification) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = body)] #[doc = "Getter for the `body` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/body)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn body(this: &Notification) -> Option; + pub fn body(this: &Notification) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = tag)] #[doc = "Getter for the `tag` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/tag)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn tag(this: &Notification) -> Option; + pub fn tag(this: &Notification) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = image)] #[doc = "Getter for the `image` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/image)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn image(this: &Notification) -> String; + pub fn image(this: &Notification) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = icon)] #[doc = "Getter for the `icon` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn icon(this: &Notification) -> Option; + pub fn icon(this: &Notification) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = badge)] #[doc = "Getter for the `badge` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/badge)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Notification`*"] - pub fn badge(this: &Notification) -> String; + pub fn badge(this: &Notification) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Notification" , js_name = vibrate)] #[doc = "Getter for the `vibrate` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_NotificationAction.rs b/crates/web-sys/src/features/gen_NotificationAction.rs index f8fee81d848..4e129c3c83d 100644 --- a/crates/web-sys/src/features/gen_NotificationAction.rs +++ b/crates/web-sys/src/features/gen_NotificationAction.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, getter = "action")] - pub fn get_action(this: &NotificationAction) -> String; + pub fn get_action(this: &NotificationAction) -> ::alloc::string::String; #[doc = "Change the `action` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, getter = "icon")] - pub fn get_icon(this: &NotificationAction) -> Option; + pub fn get_icon(this: &NotificationAction) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] #[wasm_bindgen(method, getter = "title")] - pub fn get_title(this: &NotificationAction) -> String; + pub fn get_title(this: &NotificationAction) -> ::alloc::string::String; #[doc = "Change the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationAction`*"] diff --git a/crates/web-sys/src/features/gen_NotificationOptions.rs b/crates/web-sys/src/features/gen_NotificationOptions.rs index d3ec99545d0..96a3472919d 100644 --- a/crates/web-sys/src/features/gen_NotificationOptions.rs +++ b/crates/web-sys/src/features/gen_NotificationOptions.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "badge")] - pub fn get_badge(this: &NotificationOptions) -> Option; + pub fn get_badge(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `badge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "body")] - pub fn get_body(this: &NotificationOptions) -> Option; + pub fn get_body(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `body` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "icon")] - pub fn get_icon(this: &NotificationOptions) -> Option; + pub fn get_icon(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] @@ -76,7 +76,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "image")] - pub fn get_image(this: &NotificationOptions) -> Option; + pub fn get_image(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `image` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] @@ -86,7 +86,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "lang")] - pub fn get_lang(this: &NotificationOptions) -> Option; + pub fn get_lang(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `lang` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] @@ -126,7 +126,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] #[wasm_bindgen(method, getter = "tag")] - pub fn get_tag(this: &NotificationOptions) -> Option; + pub fn get_tag(this: &NotificationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `tag` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] diff --git a/crates/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs b/crates/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs index 9e94597e350..7b756a15e59 100644 --- a/crates/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs +++ b/crates/web-sys/src/features/gen_OffscreenCanvasRenderingContext2d.rs @@ -42,7 +42,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] pub fn global_composite_operation( this: &OffscreenCanvasRenderingContext2d, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = globalCompositeOperation)] #[doc = "Setter for the `globalCompositeOperation` field of this object."] #[doc = ""] @@ -153,7 +153,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/filter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] - pub fn filter(this: &OffscreenCanvasRenderingContext2d) -> String; + pub fn filter(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = filter)] #[doc = "Setter for the `filter` field of this object."] #[doc = ""] @@ -195,7 +195,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineCap)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] - pub fn line_cap(this: &OffscreenCanvasRenderingContext2d) -> String; + pub fn line_cap(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineCap)] #[doc = "Setter for the `lineCap` field of this object."] #[doc = ""] @@ -209,7 +209,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/lineJoin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] - pub fn line_join(this: &OffscreenCanvasRenderingContext2d) -> String; + pub fn line_join(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = lineJoin)] #[doc = "Setter for the `lineJoin` field of this object."] #[doc = ""] @@ -293,7 +293,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/shadowColor)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] - pub fn shadow_color(this: &OffscreenCanvasRenderingContext2d) -> String; + pub fn shadow_color(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = shadowColor)] #[doc = "Setter for the `shadowColor` field of this object."] #[doc = ""] @@ -307,7 +307,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/font)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] - pub fn font(this: &OffscreenCanvasRenderingContext2d) -> String; + pub fn font(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = font)] #[doc = "Setter for the `font` field of this object."] #[doc = ""] @@ -321,7 +321,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/textAlign)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] - pub fn text_align(this: &OffscreenCanvasRenderingContext2d) -> String; + pub fn text_align(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = textAlign)] #[doc = "Setter for the `textAlign` field of this object."] #[doc = ""] @@ -335,7 +335,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvasRenderingContext2D/textBaseline)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvasRenderingContext2d`*"] - pub fn text_baseline(this: &OffscreenCanvasRenderingContext2d) -> String; + pub fn text_baseline(this: &OffscreenCanvasRenderingContext2d) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "OffscreenCanvasRenderingContext2D" , js_name = textBaseline)] #[doc = "Setter for the `textBaseline` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OpenFilePickerOptions.rs b/crates/web-sys/src/features/gen_OpenFilePickerOptions.rs index 512cc7bcace..8fc7269e414 100644 --- a/crates/web-sys/src/features/gen_OpenFilePickerOptions.rs +++ b/crates/web-sys/src/features/gen_OpenFilePickerOptions.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &OpenFilePickerOptions) -> Option; + pub fn get_id(this: &OpenFilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs b/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs index 442c35d3a4a..2d21350c17b 100644 --- a/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs +++ b/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, getter = "features")] - pub fn get_features(this: &OpenWindowEventDetail) -> Option; + pub fn get_features(this: &OpenWindowEventDetail) -> Option<::alloc::string::String>; #[doc = "Change the `features` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] @@ -36,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &OpenWindowEventDetail) -> Option; + pub fn get_name(this: &OpenWindowEventDetail) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] #[wasm_bindgen(method, getter = "url")] - pub fn get_url(this: &OpenWindowEventDetail) -> Option; + pub fn get_url(this: &OpenWindowEventDetail) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] diff --git a/crates/web-sys/src/features/gen_OptionalEffectTiming.rs b/crates/web-sys/src/features/gen_OptionalEffectTiming.rs index 195e6e3e2a5..c469d425415 100644 --- a/crates/web-sys/src/features/gen_OptionalEffectTiming.rs +++ b/crates/web-sys/src/features/gen_OptionalEffectTiming.rs @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] #[wasm_bindgen(method, getter = "easing")] - pub fn get_easing(this: &OptionalEffectTiming) -> Option; + pub fn get_easing(this: &OptionalEffectTiming) -> Option<::alloc::string::String>; #[doc = "Change the `easing` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] diff --git a/crates/web-sys/src/features/gen_PaintRequest.rs b/crates/web-sys/src/features/gen_PaintRequest.rs index e4fa793de3b..73a849fd73e 100644 --- a/crates/web-sys/src/features/gen_PaintRequest.rs +++ b/crates/web-sys/src/features/gen_PaintRequest.rs @@ -26,5 +26,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/reason)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] - pub fn reason(this: &PaintRequest) -> String; + pub fn reason(this: &PaintRequest) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_PaymentAddress.rs b/crates/web-sys/src/features/gen_PaymentAddress.rs index 367f8076bab..8e32be7f44c 100644 --- a/crates/web-sys/src/features/gen_PaymentAddress.rs +++ b/crates/web-sys/src/features/gen_PaymentAddress.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/country)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn country(this: &PaymentAddress) -> String; + pub fn country(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = addressLine)] #[doc = "Getter for the `addressLine` field of this object."] #[doc = ""] @@ -32,63 +32,63 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/region)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn region(this: &PaymentAddress) -> String; + pub fn region(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = city)] #[doc = "Getter for the `city` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/city)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn city(this: &PaymentAddress) -> String; + pub fn city(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = dependentLocality)] #[doc = "Getter for the `dependentLocality` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/dependentLocality)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn dependent_locality(this: &PaymentAddress) -> String; + pub fn dependent_locality(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = postalCode)] #[doc = "Getter for the `postalCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/postalCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn postal_code(this: &PaymentAddress) -> String; + pub fn postal_code(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = sortingCode)] #[doc = "Getter for the `sortingCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/sortingCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn sorting_code(this: &PaymentAddress) -> String; + pub fn sorting_code(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = languageCode)] #[doc = "Getter for the `languageCode` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/languageCode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn language_code(this: &PaymentAddress) -> String; + pub fn language_code(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = organization)] #[doc = "Getter for the `organization` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/organization)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn organization(this: &PaymentAddress) -> String; + pub fn organization(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = recipient)] #[doc = "Getter for the `recipient` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/recipient)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn recipient(this: &PaymentAddress) -> String; + pub fn recipient(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentAddress" , js_name = phone)] #[doc = "Getter for the `phone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/phone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] - pub fn phone(this: &PaymentAddress) -> String; + pub fn phone(this: &PaymentAddress) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "PaymentAddress" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs b/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs index cfd9aa62104..540a249d493 100644 --- a/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs +++ b/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/methodName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] - pub fn method_name(this: &PaymentMethodChangeEvent) -> String; + pub fn method_name(this: &PaymentMethodChangeEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentMethodChangeEvent" , js_name = methodDetails)] #[doc = "Getter for the `methodDetails` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs b/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs index 704c8b3e6de..87c5f878523 100644 --- a/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] #[wasm_bindgen(method, getter = "methodName")] - pub fn get_method_name(this: &PaymentMethodChangeEventInit) -> String; + pub fn get_method_name(this: &PaymentMethodChangeEventInit) -> ::alloc::string::String; #[doc = "Change the `methodName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] diff --git a/crates/web-sys/src/features/gen_PaymentResponse.rs b/crates/web-sys/src/features/gen_PaymentResponse.rs index 7b425575896..bcf13501191 100644 --- a/crates/web-sys/src/features/gen_PaymentResponse.rs +++ b/crates/web-sys/src/features/gen_PaymentResponse.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/requestId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] - pub fn request_id(this: &PaymentResponse) -> String; + pub fn request_id(this: &PaymentResponse) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = methodName)] #[doc = "Getter for the `methodName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/methodName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] - pub fn method_name(this: &PaymentResponse) -> String; + pub fn method_name(this: &PaymentResponse) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = details)] #[doc = "Getter for the `details` field of this object."] #[doc = ""] @@ -47,28 +47,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingOption)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] - pub fn shipping_option(this: &PaymentResponse) -> Option; + pub fn shipping_option(this: &PaymentResponse) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerName)] #[doc = "Getter for the `payerName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] - pub fn payer_name(this: &PaymentResponse) -> Option; + pub fn payer_name(this: &PaymentResponse) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerEmail)] #[doc = "Getter for the `payerEmail` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerEmail)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] - pub fn payer_email(this: &PaymentResponse) -> Option; + pub fn payer_email(this: &PaymentResponse) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "PaymentResponse" , js_name = payerPhone)] #[doc = "Getter for the `payerPhone` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerPhone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] - pub fn payer_phone(this: &PaymentResponse) -> Option; + pub fn payer_phone(this: &PaymentResponse) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "PaymentResponse" , js_name = complete)] #[doc = "The `complete()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Pbkdf2Params.rs b/crates/web-sys/src/features/gen_Pbkdf2Params.rs index 63318841580..ad375504af1 100644 --- a/crates/web-sys/src/features/gen_Pbkdf2Params.rs +++ b/crates/web-sys/src/features/gen_Pbkdf2Params.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &Pbkdf2Params) -> String; + pub fn get_name(this: &Pbkdf2Params) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] diff --git a/crates/web-sys/src/features/gen_PerformanceEntry.rs b/crates/web-sys/src/features/gen_PerformanceEntry.rs index 5427e6b8dca..3b261b8bb4c 100644 --- a/crates/web-sys/src/features/gen_PerformanceEntry.rs +++ b/crates/web-sys/src/features/gen_PerformanceEntry.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] - pub fn name(this: &PerformanceEntry) -> String; + pub fn name(this: &PerformanceEntry) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = entryType)] #[doc = "Getter for the `entryType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] - pub fn entry_type(this: &PerformanceEntry) -> String; + pub fn entry_type(this: &PerformanceEntry) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceEntry" , js_name = startTime)] #[doc = "Getter for the `startTime` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs b/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs index a8c4e2a9e28..54ac82a5611 100644 --- a/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs +++ b/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "entryType")] - pub fn get_entry_type(this: &PerformanceEntryEventInit) -> Option; + pub fn get_entry_type(this: &PerformanceEntryEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &PerformanceEntryEventInit) -> Option; + pub fn get_name(this: &PerformanceEntryEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] @@ -84,7 +84,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] #[wasm_bindgen(method, getter = "origin")] - pub fn get_origin(this: &PerformanceEntryEventInit) -> Option; + pub fn get_origin(this: &PerformanceEntryEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] diff --git a/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs b/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs index 9300c84489a..8a39f177022 100644 --- a/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs +++ b/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, getter = "entryType")] - pub fn get_entry_type(this: &PerformanceEntryFilterOptions) -> Option; + pub fn get_entry_type(this: &PerformanceEntryFilterOptions) -> Option<::alloc::string::String>; #[doc = "Change the `entryType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] @@ -24,7 +24,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, getter = "initiatorType")] - pub fn get_initiator_type(this: &PerformanceEntryFilterOptions) -> Option; + pub fn get_initiator_type( + this: &PerformanceEntryFilterOptions, + ) -> Option<::alloc::string::String>; #[doc = "Change the `initiatorType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] @@ -34,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &PerformanceEntryFilterOptions) -> Option; + pub fn get_name(this: &PerformanceEntryFilterOptions) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] diff --git a/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs b/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs index 765234d6f9a..1f46626b3b4 100644 --- a/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs +++ b/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] - pub fn initiator_type(this: &PerformanceResourceTiming) -> String; + pub fn initiator_type(this: &PerformanceResourceTiming) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = nextHopProtocol)] #[doc = "Getter for the `nextHopProtocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] - pub fn next_hop_protocol(this: &PerformanceResourceTiming) -> String; + pub fn next_hop_protocol(this: &PerformanceResourceTiming) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = workerStart)] #[doc = "Getter for the `workerStart` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PerformanceServerTiming.rs b/crates/web-sys/src/features/gen_PerformanceServerTiming.rs index 130c6fe229b..46a4dbb76c9 100644 --- a/crates/web-sys/src/features/gen_PerformanceServerTiming.rs +++ b/crates/web-sys/src/features/gen_PerformanceServerTiming.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] - pub fn name(this: &PerformanceServerTiming) -> String; + pub fn name(this: &PerformanceServerTiming) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PerformanceServerTiming" , js_name = duration)] #[doc = "Getter for the `duration` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/description)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] - pub fn description(this: &PerformanceServerTiming) -> String; + pub fn description(this: &PerformanceServerTiming) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "PerformanceServerTiming" , js_name = toJSON)] #[doc = "The `toJSON()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Plugin.rs b/crates/web-sys/src/features/gen_Plugin.rs index dc2e59cd83a..4773f398dc7 100644 --- a/crates/web-sys/src/features/gen_Plugin.rs +++ b/crates/web-sys/src/features/gen_Plugin.rs @@ -18,28 +18,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/description)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] - pub fn description(this: &Plugin) -> String; + pub fn description(this: &Plugin) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = filename)] #[doc = "Getter for the `filename` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/filename)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] - pub fn filename(this: &Plugin) -> String; + pub fn filename(this: &Plugin) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = version)] #[doc = "Getter for the `version` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/version)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] - pub fn version(this: &Plugin) -> String; + pub fn version(this: &Plugin) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] - pub fn name(this: &Plugin) -> String; + pub fn name(this: &Plugin) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Plugin" , js_name = length)] #[doc = "Getter for the `length` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs b/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs index ec2914c4923..dadfa65101d 100644 --- a/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs +++ b/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "browserDumpID")] - pub fn get_browser_dump_id(this: &PluginCrashedEventInit) -> Option; + pub fn get_browser_dump_id(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `browserDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "pluginDumpID")] - pub fn get_plugin_dump_id(this: &PluginCrashedEventInit) -> Option; + pub fn get_plugin_dump_id(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pluginDumpID` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "pluginFilename")] - pub fn get_plugin_filename(this: &PluginCrashedEventInit) -> Option; + pub fn get_plugin_filename(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pluginFilename` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] @@ -94,7 +94,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] #[wasm_bindgen(method, getter = "pluginName")] - pub fn get_plugin_name(this: &PluginCrashedEventInit) -> Option; + pub fn get_plugin_name(this: &PluginCrashedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pluginName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] diff --git a/crates/web-sys/src/features/gen_PointerEvent.rs b/crates/web-sys/src/features/gen_PointerEvent.rs index ddfa8e54683..8fcffa74f08 100644 --- a/crates/web-sys/src/features/gen_PointerEvent.rs +++ b/crates/web-sys/src/features/gen_PointerEvent.rs @@ -74,7 +74,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] - pub fn pointer_type(this: &PointerEvent) -> String; + pub fn pointer_type(this: &PointerEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = isPrimary)] #[doc = "Getter for the `isPrimary` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PointerEventInit.rs b/crates/web-sys/src/features/gen_PointerEventInit.rs index c07ee4a26d4..6f109e87931 100644 --- a/crates/web-sys/src/features/gen_PointerEventInit.rs +++ b/crates/web-sys/src/features/gen_PointerEventInit.rs @@ -328,7 +328,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] #[wasm_bindgen(method, getter = "pointerType")] - pub fn get_pointer_type(this: &PointerEventInit) -> Option; + pub fn get_pointer_type(this: &PointerEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pointerType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] diff --git a/crates/web-sys/src/features/gen_PopupBlockedEvent.rs b/crates/web-sys/src/features/gen_PopupBlockedEvent.rs index ee0cf95b5b7..b771da63948 100644 --- a/crates/web-sys/src/features/gen_PopupBlockedEvent.rs +++ b/crates/web-sys/src/features/gen_PopupBlockedEvent.rs @@ -26,14 +26,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] - pub fn popup_window_name(this: &PopupBlockedEvent) -> Option; + pub fn popup_window_name(this: &PopupBlockedEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowFeatures)] #[doc = "Getter for the `popupWindowFeatures` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowFeatures)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] - pub fn popup_window_features(this: &PopupBlockedEvent) -> Option; + pub fn popup_window_features(this: &PopupBlockedEvent) -> Option<::alloc::string::String>; #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")] #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs b/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs index 94ae9d2c24d..045d903b4cc 100644 --- a/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs +++ b/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs @@ -44,7 +44,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, getter = "popupWindowFeatures")] - pub fn get_popup_window_features(this: &PopupBlockedEventInit) -> Option; + pub fn get_popup_window_features( + this: &PopupBlockedEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `popupWindowFeatures` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] @@ -54,7 +56,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] #[wasm_bindgen(method, getter = "popupWindowName")] - pub fn get_popup_window_name(this: &PopupBlockedEventInit) -> Option; + pub fn get_popup_window_name(this: &PopupBlockedEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `popupWindowName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] diff --git a/crates/web-sys/src/features/gen_PositionError.rs b/crates/web-sys/src/features/gen_PositionError.rs index c454b7417c6..8c6dc2ace34 100644 --- a/crates/web-sys/src/features/gen_PositionError.rs +++ b/crates/web-sys/src/features/gen_PositionError.rs @@ -25,7 +25,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] - pub fn message(this: &PositionError) -> String; + pub fn message(this: &PositionError) -> ::alloc::string::String; } impl PositionError { #[doc = "The `PositionError.PERMISSION_DENIED` const."] diff --git a/crates/web-sys/src/features/gen_PresentationConnection.rs b/crates/web-sys/src/features/gen_PresentationConnection.rs index f7099833a71..c3007756487 100644 --- a/crates/web-sys/src/features/gen_PresentationConnection.rs +++ b/crates/web-sys/src/features/gen_PresentationConnection.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] - pub fn id(this: &PresentationConnection) -> String; + pub fn id(this: &PresentationConnection) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] - pub fn url(this: &PresentationConnection) -> String; + pub fn url(this: &PresentationConnection) -> ::alloc::string::String; #[cfg(feature = "PresentationConnectionState")] # [wasm_bindgen (structural , method , getter , js_class = "PresentationConnection" , js_name = state)] #[doc = "Getter for the `state` field of this object."] diff --git a/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs b/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs index 3e1ca525f18..338f15698fc 100644 --- a/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs +++ b/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"] - pub fn message(this: &PresentationConnectionCloseEvent) -> String; + pub fn message(this: &PresentationConnectionCloseEvent) -> ::alloc::string::String; #[cfg(feature = "PresentationConnectionCloseEventInit")] #[wasm_bindgen(catch, constructor, js_class = "PresentationConnectionCloseEvent")] #[doc = "The `new PresentationConnectionCloseEvent(..)` constructor, creating a new instance of `PresentationConnectionCloseEvent`."] diff --git a/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs b/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs index aef67635b74..3e98fe959de 100644 --- a/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs +++ b/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs @@ -44,7 +44,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] #[wasm_bindgen(method, getter = "message")] - pub fn get_message(this: &PresentationConnectionCloseEventInit) -> Option; + pub fn get_message( + this: &PresentationConnectionCloseEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] diff --git a/crates/web-sys/src/features/gen_ProcessingInstruction.rs b/crates/web-sys/src/features/gen_ProcessingInstruction.rs index 370b012bfbd..a2487c06d90 100644 --- a/crates/web-sys/src/features/gen_ProcessingInstruction.rs +++ b/crates/web-sys/src/features/gen_ProcessingInstruction.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/target)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"] - pub fn target(this: &ProcessingInstruction) -> String; + pub fn target(this: &ProcessingInstruction) -> ::alloc::string::String; #[cfg(feature = "StyleSheet")] # [wasm_bindgen (structural , method , getter , js_class = "ProcessingInstruction" , js_name = sheet)] #[doc = "Getter for the `sheet` field of this object."] diff --git a/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs b/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs index 0aa2993c14a..52796342058 100644 --- a/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs +++ b/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "causeName")] - pub fn get_cause_name(this: &ProfileTimelineMarker) -> Option; + pub fn get_cause_name(this: &ProfileTimelineMarker) -> Option<::alloc::string::String>; #[doc = "Change the `causeName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] @@ -91,7 +91,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &ProfileTimelineMarker) -> Option; + pub fn get_name(this: &ProfileTimelineMarker) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] @@ -141,7 +141,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &ProfileTimelineMarker) -> Option; + pub fn get_type(this: &ProfileTimelineMarker) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] diff --git a/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs b/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs index 0c0181b6eee..7633949b205 100644 --- a/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs +++ b/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "asyncCause")] - pub fn get_async_cause(this: &ProfileTimelineStackFrame) -> Option; + pub fn get_async_cause(this: &ProfileTimelineStackFrame) -> Option<::alloc::string::String>; #[doc = "Change the `asyncCause` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] @@ -44,7 +44,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "functionDisplayName")] - pub fn get_function_display_name(this: &ProfileTimelineStackFrame) -> Option; + pub fn get_function_display_name( + this: &ProfileTimelineStackFrame, + ) -> Option<::alloc::string::String>; #[doc = "Change the `functionDisplayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] @@ -74,7 +76,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] #[wasm_bindgen(method, getter = "source")] - pub fn get_source(this: &ProfileTimelineStackFrame) -> Option; + pub fn get_source(this: &ProfileTimelineStackFrame) -> Option<::alloc::string::String>; #[doc = "Change the `source` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredential.rs b/crates/web-sys/src/features/gen_PublicKeyCredential.rs index 90a07419189..0b4a0a929aa 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredential.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredential.rs @@ -37,7 +37,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn authenticator_attachment(this: &PublicKeyCredential) -> Option; + pub fn authenticator_attachment(this: &PublicKeyCredential) -> Option<::alloc::string::String>; #[cfg(feature = "AuthenticationExtensionsClientOutputs")] # [wasm_bindgen (method , structural , js_class = "PublicKeyCredential" , js_name = getClientExtensionResults)] #[doc = "The `getClientExtensionResults()` method."] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptionsJson.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptionsJson.rs index b56ce07fa5d..141656b0552 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptionsJson.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptionsJson.rs @@ -22,7 +22,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] - pub fn get_attestation(this: &PublicKeyCredentialCreationOptionsJson) -> Option; + pub fn get_attestation( + this: &PublicKeyCredentialCreationOptionsJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] @@ -88,7 +90,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "challenge")] - pub fn get_challenge(this: &PublicKeyCredentialCreationOptionsJson) -> String; + pub fn get_challenge(this: &PublicKeyCredentialCreationOptionsJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `challenge` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptorJson.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptorJson.rs index adb9f81e42e..8da096e18c3 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptorJson.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptorJson.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &PublicKeyCredentialDescriptorJson) -> String; + pub fn get_id(this: &PublicKeyCredentialDescriptorJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] @@ -58,7 +58,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &PublicKeyCredentialDescriptorJson) -> String; + pub fn get_type(this: &PublicKeyCredentialDescriptorJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs index c27a716f361..86167d5d1af 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs @@ -15,7 +15,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] #[deprecated] #[wasm_bindgen(method, getter = "icon")] - pub fn get_icon(this: &PublicKeyCredentialEntity) -> Option; + pub fn get_icon(this: &PublicKeyCredentialEntity) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &PublicKeyCredentialEntity) -> String; + pub fn get_name(this: &PublicKeyCredentialEntity) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs index ddc9c055760..086a6bdf104 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs @@ -33,7 +33,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] - pub fn get_attestation(this: &PublicKeyCredentialRequestOptions) -> Option; + pub fn get_attestation( + this: &PublicKeyCredentialRequestOptions, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] @@ -115,7 +117,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] #[wasm_bindgen(method, getter = "rpId")] - pub fn get_rp_id(this: &PublicKeyCredentialRequestOptions) -> Option; + pub fn get_rp_id(this: &PublicKeyCredentialRequestOptions) -> Option<::alloc::string::String>; #[doc = "Change the `rpId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptionsJson.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptionsJson.rs index a7bf1f6c870..2e171f3207a 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptionsJson.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptionsJson.rs @@ -45,7 +45,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "attestation")] - pub fn get_attestation(this: &PublicKeyCredentialRequestOptionsJson) -> Option; + pub fn get_attestation( + this: &PublicKeyCredentialRequestOptionsJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `attestation` field of this object."] #[doc = ""] @@ -86,7 +88,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "challenge")] - pub fn get_challenge(this: &PublicKeyCredentialRequestOptionsJson) -> String; + pub fn get_challenge(this: &PublicKeyCredentialRequestOptionsJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `challenge` field of this object."] #[doc = ""] @@ -147,7 +149,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rpId")] - pub fn get_rp_id(this: &PublicKeyCredentialRequestOptionsJson) -> Option; + pub fn get_rp_id( + this: &PublicKeyCredentialRequestOptionsJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rpId` field of this object."] #[doc = ""] @@ -183,7 +187,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "userVerification")] - pub fn get_user_verification(this: &PublicKeyCredentialRequestOptionsJson) -> Option; + pub fn get_user_verification( + this: &PublicKeyCredentialRequestOptionsJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `userVerification` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs index 17f68408a5d..33bfd85dd57 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs @@ -15,7 +15,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[deprecated] #[wasm_bindgen(method, getter = "icon")] - pub fn get_icon(this: &PublicKeyCredentialRpEntity) -> Option; + pub fn get_icon(this: &PublicKeyCredentialRpEntity) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &PublicKeyCredentialRpEntity) -> String; + pub fn get_name(this: &PublicKeyCredentialRpEntity) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] @@ -36,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &PublicKeyCredentialRpEntity) -> Option; + pub fn get_id(this: &PublicKeyCredentialRpEntity) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs index d04a2e50fda..9acbacfdaa1 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs @@ -15,7 +15,7 @@ extern "C" { #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[deprecated] #[wasm_bindgen(method, getter = "icon")] - pub fn get_icon(this: &PublicKeyCredentialUserEntity) -> Option; + pub fn get_icon(this: &PublicKeyCredentialUserEntity) -> Option<::alloc::string::String>; #[doc = "Change the `icon` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &PublicKeyCredentialUserEntity) -> String; + pub fn get_name(this: &PublicKeyCredentialUserEntity) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] @@ -36,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] #[wasm_bindgen(method, getter = "displayName")] - pub fn get_display_name(this: &PublicKeyCredentialUserEntity) -> String; + pub fn get_display_name(this: &PublicKeyCredentialUserEntity) -> ::alloc::string::String; #[doc = "Change the `displayName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntityJson.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntityJson.rs index 7dc46e46b81..80b9176bd88 100644 --- a/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntityJson.rs +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntityJson.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "displayName")] - pub fn get_display_name(this: &PublicKeyCredentialUserEntityJson) -> String; + pub fn get_display_name(this: &PublicKeyCredentialUserEntityJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `displayName` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &PublicKeyCredentialUserEntityJson) -> String; + pub fn get_id(this: &PublicKeyCredentialUserEntityJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] @@ -58,7 +58,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &PublicKeyCredentialUserEntityJson) -> String; + pub fn get_name(this: &PublicKeyCredentialUserEntityJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `name` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_PushMessageData.rs b/crates/web-sys/src/features/gen_PushMessageData.rs index cd9218376aa..0d09c0d5198 100644 --- a/crates/web-sys/src/features/gen_PushMessageData.rs +++ b/crates/web-sys/src/features/gen_PushMessageData.rs @@ -40,5 +40,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] - pub fn text(this: &PushMessageData) -> String; + pub fn text(this: &PushMessageData) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_PushSubscription.rs b/crates/web-sys/src/features/gen_PushSubscription.rs index 38ffea5c26a..317afa79a4c 100644 --- a/crates/web-sys/src/features/gen_PushSubscription.rs +++ b/crates/web-sys/src/features/gen_PushSubscription.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] - pub fn endpoint(this: &PushSubscription) -> String; + pub fn endpoint(this: &PushSubscription) -> ::alloc::string::String; #[cfg(feature = "PushSubscriptionOptions")] # [wasm_bindgen (structural , method , getter , js_class = "PushSubscription" , js_name = options)] #[doc = "Getter for the `options` field of this object."] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionInit.rs b/crates/web-sys/src/features/gen_PushSubscriptionInit.rs index 5ad982d96ca..846cfcffc04 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionInit.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionInit.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, getter = "endpoint")] - pub fn get_endpoint(this: &PushSubscriptionInit) -> String; + pub fn get_endpoint(this: &PushSubscriptionInit) -> ::alloc::string::String; #[doc = "Change the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] #[wasm_bindgen(method, getter = "scope")] - pub fn get_scope(this: &PushSubscriptionInit) -> String; + pub fn get_scope(this: &PushSubscriptionInit) -> ::alloc::string::String; #[doc = "Change the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionJson.rs b/crates/web-sys/src/features/gen_PushSubscriptionJson.rs index c3b04f9af29..31e4df5e973 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionJson.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionJson.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] #[wasm_bindgen(method, getter = "endpoint")] - pub fn get_endpoint(this: &PushSubscriptionJson) -> Option; + pub fn get_endpoint(this: &PushSubscriptionJson) -> Option<::alloc::string::String>; #[doc = "Change the `endpoint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] diff --git a/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs b/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs index 80a07f5ef6c..dadba51e67a 100644 --- a/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs +++ b/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] #[wasm_bindgen(method, getter = "auth")] - pub fn get_auth(this: &PushSubscriptionKeys) -> Option; + pub fn get_auth(this: &PushSubscriptionKeys) -> Option<::alloc::string::String>; #[doc = "Change the `auth` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] #[wasm_bindgen(method, getter = "p256dh")] - pub fn get_p256dh(this: &PushSubscriptionKeys) -> Option; + pub fn get_p256dh(this: &PushSubscriptionKeys) -> Option<::alloc::string::String>; #[doc = "Change the `p256dh` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] diff --git a/crates/web-sys/src/features/gen_RadioNodeList.rs b/crates/web-sys/src/features/gen_RadioNodeList.rs index 26ea3fc29cc..062c056c7a5 100644 --- a/crates/web-sys/src/features/gen_RadioNodeList.rs +++ b/crates/web-sys/src/features/gen_RadioNodeList.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] - pub fn value(this: &RadioNodeList) -> String; + pub fn value(this: &RadioNodeList) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "RadioNodeList" , js_name = value)] #[doc = "Setter for the `value` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RegisterRequest.rs b/crates/web-sys/src/features/gen_RegisterRequest.rs index 0b3c741d805..a7cfa8a517b 100644 --- a/crates/web-sys/src/features/gen_RegisterRequest.rs +++ b/crates/web-sys/src/features/gen_RegisterRequest.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] #[wasm_bindgen(method, getter = "challenge")] - pub fn get_challenge(this: &RegisterRequest) -> Option; + pub fn get_challenge(this: &RegisterRequest) -> Option<::alloc::string::String>; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] #[wasm_bindgen(method, getter = "version")] - pub fn get_version(this: &RegisterRequest) -> Option; + pub fn get_version(this: &RegisterRequest) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] diff --git a/crates/web-sys/src/features/gen_RegisterResponse.rs b/crates/web-sys/src/features/gen_RegisterResponse.rs index 3ec0f53e6b9..8c638b768de 100644 --- a/crates/web-sys/src/features/gen_RegisterResponse.rs +++ b/crates/web-sys/src/features/gen_RegisterResponse.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "clientData")] - pub fn get_client_data(this: &RegisterResponse) -> Option; + pub fn get_client_data(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "errorMessage")] - pub fn get_error_message(this: &RegisterResponse) -> Option; + pub fn get_error_message(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "registrationData")] - pub fn get_registration_data(this: &RegisterResponse) -> Option; + pub fn get_registration_data(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `registrationData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] #[wasm_bindgen(method, getter = "version")] - pub fn get_version(this: &RegisterResponse) -> Option; + pub fn get_version(this: &RegisterResponse) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] diff --git a/crates/web-sys/src/features/gen_RegisteredKey.rs b/crates/web-sys/src/features/gen_RegisteredKey.rs index 9698b9c89c3..986374c4ebc 100644 --- a/crates/web-sys/src/features/gen_RegisteredKey.rs +++ b/crates/web-sys/src/features/gen_RegisteredKey.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, getter = "appId")] - pub fn get_app_id(this: &RegisteredKey) -> Option; + pub fn get_app_id(this: &RegisteredKey) -> Option<::alloc::string::String>; #[doc = "Change the `appId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, getter = "keyHandle")] - pub fn get_key_handle(this: &RegisteredKey) -> Option; + pub fn get_key_handle(this: &RegisteredKey) -> Option<::alloc::string::String>; #[doc = "Change the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] #[wasm_bindgen(method, getter = "version")] - pub fn get_version(this: &RegisteredKey) -> Option; + pub fn get_version(this: &RegisteredKey) -> Option<::alloc::string::String>; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] diff --git a/crates/web-sys/src/features/gen_RegistrationOptions.rs b/crates/web-sys/src/features/gen_RegistrationOptions.rs index fe380286b6f..70f285a09c1 100644 --- a/crates/web-sys/src/features/gen_RegistrationOptions.rs +++ b/crates/web-sys/src/features/gen_RegistrationOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] #[wasm_bindgen(method, getter = "scope")] - pub fn get_scope(this: &RegistrationOptions) -> Option; + pub fn get_scope(this: &RegistrationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `scope` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &RegistrationOptions) -> Option; + pub fn get_type(this: &RegistrationOptions) -> Option<::alloc::string::String>; #[doc = "Change the `type` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] diff --git a/crates/web-sys/src/features/gen_RegistrationResponseJson.rs b/crates/web-sys/src/features/gen_RegistrationResponseJson.rs index c34df99d37e..7f298fc1e50 100644 --- a/crates/web-sys/src/features/gen_RegistrationResponseJson.rs +++ b/crates/web-sys/src/features/gen_RegistrationResponseJson.rs @@ -22,7 +22,9 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "authenticatorAttachment")] - pub fn get_authenticator_attachment(this: &RegistrationResponseJson) -> Option; + pub fn get_authenticator_attachment( + this: &RegistrationResponseJson, + ) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `authenticatorAttachment` field of this object."] #[doc = ""] @@ -65,7 +67,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RegistrationResponseJson) -> String; + pub fn get_id(this: &RegistrationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] @@ -83,7 +85,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "rawId")] - pub fn get_raw_id(this: &RegistrationResponseJson) -> String; + pub fn get_raw_id(this: &RegistrationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `rawId` field of this object."] #[doc = ""] @@ -124,7 +126,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "type")] - pub fn get_type(this: &RegistrationResponseJson) -> String; + pub fn get_type(this: &RegistrationResponseJson) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `type` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Request.rs b/crates/web-sys/src/features/gen_Request.rs index 3be945fa912..2561fb5dc66 100644 --- a/crates/web-sys/src/features/gen_Request.rs +++ b/crates/web-sys/src/features/gen_Request.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/method)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] - pub fn method(this: &Request) -> String; + pub fn method(this: &Request) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] - pub fn url(this: &Request) -> String; + pub fn url(this: &Request) -> ::alloc::string::String; #[cfg(feature = "Headers")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = headers)] #[doc = "Getter for the `headers` field of this object."] @@ -48,7 +48,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/referrer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] - pub fn referrer(this: &Request) -> String; + pub fn referrer(this: &Request) -> ::alloc::string::String; #[cfg(feature = "ReferrerPolicy")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = referrerPolicy)] #[doc = "Getter for the `referrerPolicy` field of this object."] @@ -95,7 +95,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/integrity)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Request`*"] - pub fn integrity(this: &Request) -> String; + pub fn integrity(this: &Request) -> ::alloc::string::String; #[cfg(feature = "AbortSignal")] # [wasm_bindgen (structural , method , getter , js_class = "Request" , js_name = signal)] #[doc = "Getter for the `signal` field of this object."] diff --git a/crates/web-sys/src/features/gen_RequestInit.rs b/crates/web-sys/src/features/gen_RequestInit.rs index ed3eb257b7e..83d48276202 100644 --- a/crates/web-sys/src/features/gen_RequestInit.rs +++ b/crates/web-sys/src/features/gen_RequestInit.rs @@ -58,7 +58,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "integrity")] - pub fn get_integrity(this: &RequestInit) -> Option; + pub fn get_integrity(this: &RequestInit) -> Option<::alloc::string::String>; #[doc = "Change the `integrity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] @@ -68,7 +68,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "method")] - pub fn get_method(this: &RequestInit) -> Option; + pub fn get_method(this: &RequestInit) -> Option<::alloc::string::String>; #[doc = "Change the `method` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] @@ -114,7 +114,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] #[wasm_bindgen(method, getter = "referrer")] - pub fn get_referrer(this: &RequestInit) -> Option; + pub fn get_referrer(this: &RequestInit) -> Option<::alloc::string::String>; #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] diff --git a/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs b/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs index 5c0c2f0758b..d1eee89efe3 100644 --- a/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs +++ b/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs @@ -14,7 +14,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] #[wasm_bindgen(method, getter = "keySystem")] - pub fn get_key_system(this: &RequestMediaKeySystemAccessNotification) -> String; + pub fn get_key_system( + this: &RequestMediaKeySystemAccessNotification, + ) -> ::alloc::string::String; #[doc = "Change the `keySystem` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] diff --git a/crates/web-sys/src/features/gen_Response.rs b/crates/web-sys/src/features/gen_Response.rs index 942fb9cb56c..d569ae4df11 100644 --- a/crates/web-sys/src/features/gen_Response.rs +++ b/crates/web-sys/src/features/gen_Response.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] - pub fn url(this: &Response) -> String; + pub fn url(this: &Response) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = redirected)] #[doc = "Getter for the `redirected` field of this object."] #[doc = ""] @@ -54,7 +54,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Response`*"] - pub fn status_text(this: &Response) -> String; + pub fn status_text(this: &Response) -> ::alloc::string::String; #[cfg(feature = "Headers")] # [wasm_bindgen (structural , method , getter , js_class = "Response" , js_name = headers)] #[doc = "Getter for the `headers` field of this object."] diff --git a/crates/web-sys/src/features/gen_ResponseInit.rs b/crates/web-sys/src/features/gen_ResponseInit.rs index 0d65c079458..8323983698f 100644 --- a/crates/web-sys/src/features/gen_ResponseInit.rs +++ b/crates/web-sys/src/features/gen_ResponseInit.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] #[wasm_bindgen(method, getter = "statusText")] - pub fn get_status_text(this: &ResponseInit) -> Option; + pub fn get_status_text(this: &ResponseInit) -> Option<::alloc::string::String>; #[doc = "Change the `statusText` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] diff --git a/crates/web-sys/src/features/gen_RsaOaepParams.rs b/crates/web-sys/src/features/gen_RsaOaepParams.rs index f0ae80e6358..7bf27c6183c 100644 --- a/crates/web-sys/src/features/gen_RsaOaepParams.rs +++ b/crates/web-sys/src/features/gen_RsaOaepParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &RsaOaepParams) -> String; + pub fn get_name(this: &RsaOaepParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] diff --git a/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs b/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs index d31ec101bce..eb9b9fba968 100644 --- a/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs +++ b/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, getter = "d")] - pub fn get_d(this: &RsaOtherPrimesInfo) -> String; + pub fn get_d(this: &RsaOtherPrimesInfo) -> ::alloc::string::String; #[doc = "Change the `d` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, getter = "r")] - pub fn get_r(this: &RsaOtherPrimesInfo) -> String; + pub fn get_r(this: &RsaOtherPrimesInfo) -> ::alloc::string::String; #[doc = "Change the `r` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] #[wasm_bindgen(method, getter = "t")] - pub fn get_t(this: &RsaOtherPrimesInfo) -> String; + pub fn get_t(this: &RsaOtherPrimesInfo) -> ::alloc::string::String; #[doc = "Change the `t` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] diff --git a/crates/web-sys/src/features/gen_RsaPssParams.rs b/crates/web-sys/src/features/gen_RsaPssParams.rs index 1fd87410283..8760c5de791 100644 --- a/crates/web-sys/src/features/gen_RsaPssParams.rs +++ b/crates/web-sys/src/features/gen_RsaPssParams.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &RsaPssParams) -> String; + pub fn get_name(this: &RsaPssParams) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] diff --git a/crates/web-sys/src/features/gen_RtcCodecStats.rs b/crates/web-sys/src/features/gen_RtcCodecStats.rs index 81bcee55873..e9a3ef90a70 100644 --- a/crates/web-sys/src/features/gen_RtcCodecStats.rs +++ b/crates/web-sys/src/features/gen_RtcCodecStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcCodecStats) -> Option; + pub fn get_id(this: &RtcCodecStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "codec")] - pub fn get_codec(this: &RtcCodecStats) -> Option; + pub fn get_codec(this: &RtcCodecStats) -> Option<::alloc::string::String>; #[doc = "Change the `codec` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] @@ -76,7 +76,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] #[wasm_bindgen(method, getter = "parameters")] - pub fn get_parameters(this: &RtcCodecStats) -> Option; + pub fn get_parameters(this: &RtcCodecStats) -> Option<::alloc::string::String>; #[doc = "Change the `parameters` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcConfiguration.rs b/crates/web-sys/src/features/gen_RtcConfiguration.rs index 93343f2b14b..3d70b68dbfd 100644 --- a/crates/web-sys/src/features/gen_RtcConfiguration.rs +++ b/crates/web-sys/src/features/gen_RtcConfiguration.rs @@ -58,7 +58,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] #[wasm_bindgen(method, getter = "peerIdentity")] - pub fn get_peer_identity(this: &RtcConfiguration) -> Option; + pub fn get_peer_identity(this: &RtcConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] diff --git a/crates/web-sys/src/features/gen_RtcDataChannel.rs b/crates/web-sys/src/features/gen_RtcDataChannel.rs index 9aac13cf490..690721a3c1d 100644 --- a/crates/web-sys/src/features/gen_RtcDataChannel.rs +++ b/crates/web-sys/src/features/gen_RtcDataChannel.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] - pub fn label(this: &RtcDataChannel) -> String; + pub fn label(this: &RtcDataChannel) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "RTCDataChannel" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcDataChannelInit.rs b/crates/web-sys/src/features/gen_RtcDataChannelInit.rs index 1e3a9331a66..44f94a1acab 100644 --- a/crates/web-sys/src/features/gen_RtcDataChannelInit.rs +++ b/crates/web-sys/src/features/gen_RtcDataChannelInit.rs @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] #[wasm_bindgen(method, getter = "protocol")] - pub fn get_protocol(this: &RtcDataChannelInit) -> Option; + pub fn get_protocol(this: &RtcDataChannelInit) -> Option<::alloc::string::String>; #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] diff --git a/crates/web-sys/src/features/gen_RtcEncodedAudioFrameMetadata.rs b/crates/web-sys/src/features/gen_RtcEncodedAudioFrameMetadata.rs index 32eb233b84b..40f1de3bf2c 100644 --- a/crates/web-sys/src/features/gen_RtcEncodedAudioFrameMetadata.rs +++ b/crates/web-sys/src/features/gen_RtcEncodedAudioFrameMetadata.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mimeType")] - pub fn get_mime_type(this: &RtcEncodedAudioFrameMetadata) -> Option; + pub fn get_mime_type(this: &RtcEncodedAudioFrameMetadata) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mimeType` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcEncodedVideoFrameMetadata.rs b/crates/web-sys/src/features/gen_RtcEncodedVideoFrameMetadata.rs index 9e544e9d4c3..c5cb3e80493 100644 --- a/crates/web-sys/src/features/gen_RtcEncodedVideoFrameMetadata.rs +++ b/crates/web-sys/src/features/gen_RtcEncodedVideoFrameMetadata.rs @@ -98,7 +98,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "mimeType")] - pub fn get_mime_type(this: &RtcEncodedVideoFrameMetadata) -> Option; + pub fn get_mime_type(this: &RtcEncodedVideoFrameMetadata) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `mimeType` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidate.rs b/crates/web-sys/src/features/gen_RtcIceCandidate.rs index 35b21b74b2b..ef7762e2d04 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidate.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidate.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] - pub fn candidate(this: &RtcIceCandidate) -> String; + pub fn candidate(this: &RtcIceCandidate) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = candidate)] #[doc = "Setter for the `candidate` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] - pub fn sdp_mid(this: &RtcIceCandidate) -> Option; + pub fn sdp_mid(this: &RtcIceCandidate) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMid)] #[doc = "Setter for the `sdpMid` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs b/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs index 9268c3908da..442d5a9a898 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, getter = "candidate")] - pub fn get_candidate(this: &RtcIceCandidateInit) -> String; + pub fn get_candidate(this: &RtcIceCandidateInit) -> ::alloc::string::String; #[doc = "Change the `candidate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] #[wasm_bindgen(method, getter = "sdpMid")] - pub fn get_sdp_mid(this: &RtcIceCandidateInit) -> Option; + pub fn get_sdp_mid(this: &RtcIceCandidateInit) -> Option<::alloc::string::String>; #[doc = "Change the `sdpMid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs b/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs index 0ea8f977a5e..09b70f0eb49 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcIceCandidatePairStats) -> Option; + pub fn get_id(this: &RtcIceCandidatePairStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] @@ -96,7 +96,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "localCandidateId")] - pub fn get_local_candidate_id(this: &RtcIceCandidatePairStats) -> Option; + pub fn get_local_candidate_id( + this: &RtcIceCandidatePairStats, + ) -> Option<::alloc::string::String>; #[doc = "Change the `localCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] @@ -136,7 +138,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "remoteCandidateId")] - pub fn get_remote_candidate_id(this: &RtcIceCandidatePairStats) -> Option; + pub fn get_remote_candidate_id( + this: &RtcIceCandidatePairStats, + ) -> Option<::alloc::string::String>; #[doc = "Change the `remoteCandidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] @@ -168,7 +172,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] #[wasm_bindgen(method, getter = "transportId")] - pub fn get_transport_id(this: &RtcIceCandidatePairStats) -> Option; + pub fn get_transport_id(this: &RtcIceCandidatePairStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs b/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs index 6ea9e9880b2..cae28c69282 100644 --- a/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs +++ b/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcIceCandidateStats) -> Option; + pub fn get_id(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "candidateId")] - pub fn get_candidate_id(this: &RtcIceCandidateStats) -> Option; + pub fn get_candidate_id(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `candidateId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] @@ -68,7 +68,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "componentId")] - pub fn get_component_id(this: &RtcIceCandidateStats) -> Option; + pub fn get_component_id(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `componentId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] @@ -78,7 +78,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "ipAddress")] - pub fn get_ip_address(this: &RtcIceCandidateStats) -> Option; + pub fn get_ip_address(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `ipAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] @@ -98,7 +98,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] #[wasm_bindgen(method, getter = "transport")] - pub fn get_transport(this: &RtcIceCandidateStats) -> Option; + pub fn get_transport(this: &RtcIceCandidateStats) -> Option<::alloc::string::String>; #[doc = "Change the `transport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcIceComponentStats.rs b/crates/web-sys/src/features/gen_RtcIceComponentStats.rs index ffdf6a5ec07..33f5d6f6af7 100644 --- a/crates/web-sys/src/features/gen_RtcIceComponentStats.rs +++ b/crates/web-sys/src/features/gen_RtcIceComponentStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcIceComponentStats) -> Option; + pub fn get_id(this: &RtcIceComponentStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] @@ -86,7 +86,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] #[wasm_bindgen(method, getter = "transportId")] - pub fn get_transport_id(this: &RtcIceComponentStats) -> Option; + pub fn get_transport_id(this: &RtcIceComponentStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcIceServer.rs b/crates/web-sys/src/features/gen_RtcIceServer.rs index 9d68913411a..cc3e8785725 100644 --- a/crates/web-sys/src/features/gen_RtcIceServer.rs +++ b/crates/web-sys/src/features/gen_RtcIceServer.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, getter = "credential")] - pub fn get_credential(this: &RtcIceServer) -> Option; + pub fn get_credential(this: &RtcIceServer) -> Option<::alloc::string::String>; #[doc = "Change the `credential` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] @@ -36,7 +36,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, getter = "url")] - pub fn get_url(this: &RtcIceServer) -> Option; + pub fn get_url(this: &RtcIceServer) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] @@ -56,7 +56,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] #[wasm_bindgen(method, getter = "username")] - pub fn get_username(this: &RtcIceServer) -> Option; + pub fn get_username(this: &RtcIceServer) -> Option<::alloc::string::String>; #[doc = "Change the `username` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] diff --git a/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs b/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs index 7458c2702a8..0b38bd9d8c5 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] #[wasm_bindgen(method, getter = "idp")] - pub fn get_idp(this: &RtcIdentityAssertion) -> Option; + pub fn get_idp(this: &RtcIdentityAssertion) -> Option<::alloc::string::String>; #[doc = "Change the `idp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &RtcIdentityAssertion) -> Option; + pub fn get_name(this: &RtcIdentityAssertion) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] diff --git a/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs b/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs index 8a7503430a2..8219c790013 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] #[wasm_bindgen(method, getter = "assertion")] - pub fn get_assertion(this: &RtcIdentityAssertionResult) -> String; + pub fn get_assertion(this: &RtcIdentityAssertionResult) -> ::alloc::string::String; #[doc = "Change the `assertion` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs index e00b757903b..d085ff7d511 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] #[wasm_bindgen(method, getter = "domain")] - pub fn get_domain(this: &RtcIdentityProviderDetails) -> String; + pub fn get_domain(this: &RtcIdentityProviderDetails) -> ::alloc::string::String; #[doc = "Change the `domain` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] #[wasm_bindgen(method, getter = "protocol")] - pub fn get_protocol(this: &RtcIdentityProviderDetails) -> Option; + pub fn get_protocol(this: &RtcIdentityProviderDetails) -> Option<::alloc::string::String>; #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs index 2dc6811ef44..4b6e6cb03b0 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, getter = "peerIdentity")] - pub fn get_peer_identity(this: &RtcIdentityProviderOptions) -> Option; + pub fn get_peer_identity(this: &RtcIdentityProviderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `peerIdentity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, getter = "protocol")] - pub fn get_protocol(this: &RtcIdentityProviderOptions) -> Option; + pub fn get_protocol(this: &RtcIdentityProviderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `protocol` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] #[wasm_bindgen(method, getter = "usernameHint")] - pub fn get_username_hint(this: &RtcIdentityProviderOptions) -> Option; + pub fn get_username_hint(this: &RtcIdentityProviderOptions) -> Option<::alloc::string::String>; #[doc = "Change the `usernameHint` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] diff --git a/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs b/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs index fd417af730f..6319985e688 100644 --- a/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs +++ b/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] #[wasm_bindgen(method, getter = "contents")] - pub fn get_contents(this: &RtcIdentityValidationResult) -> String; + pub fn get_contents(this: &RtcIdentityValidationResult) -> ::alloc::string::String; #[doc = "Change the `contents` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] #[wasm_bindgen(method, getter = "identity")] - pub fn get_identity(this: &RtcIdentityValidationResult) -> String; + pub fn get_identity(this: &RtcIdentityValidationResult) -> ::alloc::string::String; #[doc = "Change the `identity` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] diff --git a/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs index 21580dcb493..c1d37aac0cf 100644 --- a/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcInboundRtpStreamStats) -> Option; + pub fn get_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "codecId")] - pub fn get_codec_id(this: &RtcInboundRtpStreamStats) -> Option; + pub fn get_codec_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] @@ -116,7 +116,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaTrackId")] - pub fn get_media_track_id(this: &RtcInboundRtpStreamStats) -> Option; + pub fn get_media_track_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] @@ -126,7 +126,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaType")] - pub fn get_media_type(this: &RtcInboundRtpStreamStats) -> Option; + pub fn get_media_type(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] @@ -156,7 +156,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "remoteId")] - pub fn get_remote_id(this: &RtcInboundRtpStreamStats) -> Option; + pub fn get_remote_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] @@ -166,7 +166,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "ssrc")] - pub fn get_ssrc(this: &RtcInboundRtpStreamStats) -> Option; + pub fn get_ssrc(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] @@ -176,7 +176,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "transportId")] - pub fn get_transport_id(this: &RtcInboundRtpStreamStats) -> Option; + pub fn get_transport_id(this: &RtcInboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs b/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs index 8dc44254a10..7ffbb3b8fc5 100644 --- a/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcMediaStreamStats) -> Option; + pub fn get_id(this: &RtcMediaStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] @@ -46,7 +46,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] #[wasm_bindgen(method, getter = "streamIdentifier")] - pub fn get_stream_identifier(this: &RtcMediaStreamStats) -> Option; + pub fn get_stream_identifier(this: &RtcMediaStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `streamIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs b/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs index 0ba64d2a16b..093c30d645a 100644 --- a/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs +++ b/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcMediaStreamTrackStats) -> Option; + pub fn get_id(this: &RtcMediaStreamTrackStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] @@ -176,7 +176,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] #[wasm_bindgen(method, getter = "trackIdentifier")] - pub fn get_track_identifier(this: &RtcMediaStreamTrackStats) -> Option; + pub fn get_track_identifier(this: &RtcMediaStreamTrackStats) + -> Option<::alloc::string::String>; #[doc = "Change the `trackIdentifier` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs index 093c0b0af22..06ebf0bcd0f 100644 --- a/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcOutboundRtpStreamStats) -> Option; + pub fn get_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "codecId")] - pub fn get_codec_id(this: &RtcOutboundRtpStreamStats) -> Option; + pub fn get_codec_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] @@ -116,7 +116,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaTrackId")] - pub fn get_media_track_id(this: &RtcOutboundRtpStreamStats) -> Option; + pub fn get_media_track_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] @@ -126,7 +126,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaType")] - pub fn get_media_type(this: &RtcOutboundRtpStreamStats) -> Option; + pub fn get_media_type(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] @@ -156,7 +156,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "remoteId")] - pub fn get_remote_id(this: &RtcOutboundRtpStreamStats) -> Option; + pub fn get_remote_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] @@ -166,7 +166,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "ssrc")] - pub fn get_ssrc(this: &RtcOutboundRtpStreamStats) -> Option; + pub fn get_ssrc(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] @@ -176,7 +176,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] #[wasm_bindgen(method, getter = "transportId")] - pub fn get_transport_id(this: &RtcOutboundRtpStreamStats) -> Option; + pub fn get_transport_id(this: &RtcOutboundRtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcPeerConnection.rs b/crates/web-sys/src/features/gen_RtcPeerConnection.rs index 5c98c638706..9a96c5b3e7b 100644 --- a/crates/web-sys/src/features/gen_RtcPeerConnection.rs +++ b/crates/web-sys/src/features/gen_RtcPeerConnection.rs @@ -112,7 +112,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/idpLoginUrl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] - pub fn idp_login_url(this: &RtcPeerConnection) -> Option; + pub fn idp_login_url(this: &RtcPeerConnection) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded)] #[doc = "Getter for the `onnegotiationneeded` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcPeerConnectionIceErrorEvent.rs b/crates/web-sys/src/features/gen_RtcPeerConnectionIceErrorEvent.rs index fd0fc4a29ac..c5200370741 100644 --- a/crates/web-sys/src/features/gen_RtcPeerConnectionIceErrorEvent.rs +++ b/crates/web-sys/src/features/gen_RtcPeerConnectionIceErrorEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/address)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] - pub fn address(this: &RtcPeerConnectionIceErrorEvent) -> Option; + pub fn address(this: &RtcPeerConnectionIceErrorEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] - pub fn url(this: &RtcPeerConnectionIceErrorEvent) -> String; + pub fn url(this: &RtcPeerConnectionIceErrorEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "RTCPeerConnectionIceErrorEvent" , js_name = errorCode)] #[doc = "Getter for the `errorCode` field of this object."] #[doc = ""] @@ -46,5 +46,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceErrorEvent`*"] - pub fn error_text(this: &RtcPeerConnectionIceErrorEvent) -> String; + pub fn error_text(this: &RtcPeerConnectionIceErrorEvent) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_RtcRtcpParameters.rs b/crates/web-sys/src/features/gen_RtcRtcpParameters.rs index 08bcfc0e6ee..2810d163ab8 100644 --- a/crates/web-sys/src/features/gen_RtcRtcpParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtcpParameters.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] #[wasm_bindgen(method, getter = "cname")] - pub fn get_cname(this: &RtcRtcpParameters) -> Option; + pub fn get_cname(this: &RtcRtcpParameters) -> Option<::alloc::string::String>; #[doc = "Change the `cname` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] diff --git a/crates/web-sys/src/features/gen_RtcRtpCodecCapability.rs b/crates/web-sys/src/features/gen_RtcRtpCodecCapability.rs index c398df3fdb6..c919b20766f 100644 --- a/crates/web-sys/src/features/gen_RtcRtpCodecCapability.rs +++ b/crates/web-sys/src/features/gen_RtcRtpCodecCapability.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, getter = "mimeType")] - pub fn get_mime_type(this: &RtcRtpCodecCapability) -> String; + pub fn get_mime_type(this: &RtcRtpCodecCapability) -> ::alloc::string::String; #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] #[wasm_bindgen(method, getter = "sdpFmtpLine")] - pub fn get_sdp_fmtp_line(this: &RtcRtpCodecCapability) -> Option; + pub fn get_sdp_fmtp_line(this: &RtcRtpCodecCapability) -> Option<::alloc::string::String>; #[doc = "Change the `sdpFmtpLine` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecCapability`*"] diff --git a/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs b/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs index eefd4a90474..c4a0aa007ee 100644 --- a/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, getter = "mimeType")] - pub fn get_mime_type(this: &RtcRtpCodecParameters) -> Option; + pub fn get_mime_type(this: &RtcRtpCodecParameters) -> Option<::alloc::string::String>; #[doc = "Change the `mimeType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] #[wasm_bindgen(method, getter = "sdpFmtpLine")] - pub fn get_sdp_fmtp_line(this: &RtcRtpCodecParameters) -> Option; + pub fn get_sdp_fmtp_line(this: &RtcRtpCodecParameters) -> Option<::alloc::string::String>; #[doc = "Change the `sdpFmtpLine` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] diff --git a/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs b/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs index e9a65e07012..f9779b34757 100644 --- a/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs @@ -75,7 +75,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] #[wasm_bindgen(method, getter = "rid")] - pub fn get_rid(this: &RtcRtpEncodingParameters) -> Option; + pub fn get_rid(this: &RtcRtpEncodingParameters) -> Option<::alloc::string::String>; #[doc = "Change the `rid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] @@ -101,7 +101,8 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "scalabilityMode")] - pub fn get_scalability_mode(this: &RtcRtpEncodingParameters) -> Option; + pub fn get_scalability_mode(this: &RtcRtpEncodingParameters) + -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `scalabilityMode` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionCapability.rs b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionCapability.rs index 9372c5da79a..f7baf8c29ab 100644 --- a/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionCapability.rs +++ b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionCapability.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"] #[wasm_bindgen(method, getter = "uri")] - pub fn get_uri(this: &RtcRtpHeaderExtensionCapability) -> String; + pub fn get_uri(this: &RtcRtpHeaderExtensionCapability) -> ::alloc::string::String; #[doc = "Change the `uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionCapability`*"] diff --git a/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs index aeeeb11cc80..c4818dc3e5f 100644 --- a/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs +++ b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] #[wasm_bindgen(method, getter = "uri")] - pub fn get_uri(this: &RtcRtpHeaderExtensionParameters) -> Option; + pub fn get_uri(this: &RtcRtpHeaderExtensionParameters) -> Option<::alloc::string::String>; #[doc = "Change the `uri` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] diff --git a/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs b/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs index 8b8fca690bb..1f7ddb8ceff 100644 --- a/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs +++ b/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/mid)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] - pub fn mid(this: &RtcRtpTransceiver) -> Option; + pub fn mid(this: &RtcRtpTransceiver) -> Option<::alloc::string::String>; #[cfg(feature = "RtcRtpSender")] # [wasm_bindgen (structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = sender)] #[doc = "Getter for the `sender` field of this object."] @@ -72,7 +72,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/getRemoteTrackId)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] - pub fn get_remote_track_id(this: &RtcRtpTransceiver) -> String; + pub fn get_remote_track_id(this: &RtcRtpTransceiver) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "RTCRtpTransceiver" , js_name = setCodecPreferences)] #[doc = "The `setCodecPreferences()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcSessionDescription.rs b/crates/web-sys/src/features/gen_RtcSessionDescription.rs index d61eb1f2eb6..6f3df92d131 100644 --- a/crates/web-sys/src/features/gen_RtcSessionDescription.rs +++ b/crates/web-sys/src/features/gen_RtcSessionDescription.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/sdp)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] - pub fn sdp(this: &RtcSessionDescription) -> String; + pub fn sdp(this: &RtcSessionDescription) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "RTCSessionDescription" , js_name = sdp)] #[doc = "Setter for the `sdp` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs b/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs index 7c159a09ef2..3418582c993 100644 --- a/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs +++ b/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] #[wasm_bindgen(method, getter = "sdp")] - pub fn get_sdp(this: &RtcSessionDescriptionInit) -> Option; + pub fn get_sdp(this: &RtcSessionDescriptionInit) -> Option<::alloc::string::String>; #[doc = "Change the `sdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] diff --git a/crates/web-sys/src/features/gen_RtcStats.rs b/crates/web-sys/src/features/gen_RtcStats.rs index 76e02fe410b..3c9d2245f87 100644 --- a/crates/web-sys/src/features/gen_RtcStats.rs +++ b/crates/web-sys/src/features/gen_RtcStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcStats) -> Option; + pub fn get_id(this: &RtcStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs b/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs index 620270ec598..1f363bf7bcf 100644 --- a/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs +++ b/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs @@ -100,7 +100,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "localSdp")] - pub fn get_local_sdp(this: &RtcStatsReportInternal) -> Option; + pub fn get_local_sdp(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>; #[doc = "Change the `localSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] @@ -156,7 +156,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "pcid")] - pub fn get_pcid(this: &RtcStatsReportInternal) -> Option; + pub fn get_pcid(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>; #[doc = "Change the `pcid` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] @@ -186,7 +186,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] #[wasm_bindgen(method, getter = "remoteSdp")] - pub fn get_remote_sdp(this: &RtcStatsReportInternal) -> Option; + pub fn get_remote_sdp(this: &RtcStatsReportInternal) -> Option<::alloc::string::String>; #[doc = "Change the `remoteSdp` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] diff --git a/crates/web-sys/src/features/gen_RtcTransportStats.rs b/crates/web-sys/src/features/gen_RtcTransportStats.rs index 6564b4c1fab..b0ef75d0eba 100644 --- a/crates/web-sys/src/features/gen_RtcTransportStats.rs +++ b/crates/web-sys/src/features/gen_RtcTransportStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcTransportStats) -> Option; + pub fn get_id(this: &RtcTransportStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcdtmfSender.rs b/crates/web-sys/src/features/gen_RtcdtmfSender.rs index 3d66c3f5fe0..78a92e9db17 100644 --- a/crates/web-sys/src/features/gen_RtcdtmfSender.rs +++ b/crates/web-sys/src/features/gen_RtcdtmfSender.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/toneBuffer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] - pub fn tone_buffer(this: &RtcdtmfSender) -> String; + pub fn tone_buffer(this: &RtcdtmfSender) -> ::alloc::string::String; # [wasm_bindgen (method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF)] #[doc = "The `insertDTMF()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs index 55772916caf..c85f9982f22 100644 --- a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs +++ b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/tone)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] - pub fn tone(this: &RtcdtmfToneChangeEvent) -> String; + pub fn tone(this: &RtcdtmfToneChangeEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "RTCDTMFToneChangeEvent")] #[doc = "The `new RtcdtmfToneChangeEvent(..)` constructor, creating a new instance of `RtcdtmfToneChangeEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs index 760ea9dceff..40d76056c2b 100644 --- a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs +++ b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] #[wasm_bindgen(method, getter = "tone")] - pub fn get_tone(this: &RtcdtmfToneChangeEventInit) -> Option; + pub fn get_tone(this: &RtcdtmfToneChangeEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `tone` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] diff --git a/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs b/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs index c072f988065..cfc4afcd035 100644 --- a/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs +++ b/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcrtpContributingSourceStats) -> Option; + pub fn get_id(this: &RtcrtpContributingSourceStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] @@ -56,7 +56,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] #[wasm_bindgen(method, getter = "inboundRtpStreamId")] - pub fn get_inbound_rtp_stream_id(this: &RtcrtpContributingSourceStats) -> Option; + pub fn get_inbound_rtp_stream_id( + this: &RtcrtpContributingSourceStats, + ) -> Option<::alloc::string::String>; #[doc = "Change the `inboundRtpStreamId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] diff --git a/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs index 8348f7fecff..c2941657c1a 100644 --- a/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs +++ b/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &RtcrtpStreamStats) -> Option; + pub fn get_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] @@ -66,7 +66,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "codecId")] - pub fn get_codec_id(this: &RtcrtpStreamStats) -> Option; + pub fn get_codec_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `codecId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] @@ -116,7 +116,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaTrackId")] - pub fn get_media_track_id(this: &RtcrtpStreamStats) -> Option; + pub fn get_media_track_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaTrackId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] @@ -126,7 +126,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "mediaType")] - pub fn get_media_type(this: &RtcrtpStreamStats) -> Option; + pub fn get_media_type(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `mediaType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] @@ -156,7 +156,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "remoteId")] - pub fn get_remote_id(this: &RtcrtpStreamStats) -> Option; + pub fn get_remote_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `remoteId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] @@ -166,7 +166,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "ssrc")] - pub fn get_ssrc(this: &RtcrtpStreamStats) -> Option; + pub fn get_ssrc(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `ssrc` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] @@ -176,7 +176,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] #[wasm_bindgen(method, getter = "transportId")] - pub fn get_transport_id(this: &RtcrtpStreamStats) -> Option; + pub fn get_transport_id(this: &RtcrtpStreamStats) -> Option<::alloc::string::String>; #[doc = "Change the `transportId` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] diff --git a/crates/web-sys/src/features/gen_SaveFilePickerOptions.rs b/crates/web-sys/src/features/gen_SaveFilePickerOptions.rs index 3e310a60ca1..efff6185b3a 100644 --- a/crates/web-sys/src/features/gen_SaveFilePickerOptions.rs +++ b/crates/web-sys/src/features/gen_SaveFilePickerOptions.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &SaveFilePickerOptions) -> Option; + pub fn get_id(this: &SaveFilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `id` field of this object."] #[doc = ""] @@ -94,7 +94,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "suggestedName")] - pub fn get_suggested_name(this: &SaveFilePickerOptions) -> Option; + pub fn get_suggested_name(this: &SaveFilePickerOptions) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `suggestedName` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs b/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs index f8c29a91147..139a7501f34 100644 --- a/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs +++ b/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs @@ -18,56 +18,56 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/documentURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn document_uri(this: &SecurityPolicyViolationEvent) -> String; + pub fn document_uri(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = referrer)] #[doc = "Getter for the `referrer` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/referrer)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn referrer(this: &SecurityPolicyViolationEvent) -> String; + pub fn referrer(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = blockedURI)] #[doc = "Getter for the `blockedURI` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn blocked_uri(this: &SecurityPolicyViolationEvent) -> String; + pub fn blocked_uri(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = violatedDirective)] #[doc = "Getter for the `violatedDirective` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn violated_directive(this: &SecurityPolicyViolationEvent) -> String; + pub fn violated_directive(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = effectiveDirective)] #[doc = "Getter for the `effectiveDirective` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn effective_directive(this: &SecurityPolicyViolationEvent) -> String; + pub fn effective_directive(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = originalPolicy)] #[doc = "Getter for the `originalPolicy` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn original_policy(this: &SecurityPolicyViolationEvent) -> String; + pub fn original_policy(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sourceFile)] #[doc = "Getter for the `sourceFile` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn source_file(this: &SecurityPolicyViolationEvent) -> String; + pub fn source_file(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sample)] #[doc = "Getter for the `sample` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sample)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] - pub fn sample(this: &SecurityPolicyViolationEvent) -> String; + pub fn sample(this: &SecurityPolicyViolationEvent) -> ::alloc::string::String; #[cfg(feature = "SecurityPolicyViolationEventDisposition")] # [wasm_bindgen (structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = disposition)] #[doc = "Getter for the `disposition` field of this object."] diff --git a/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs index 5176921a837..4a798b55318 100644 --- a/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs +++ b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs @@ -44,7 +44,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "blockedURI")] - pub fn get_blocked_uri(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_blocked_uri( + this: &SecurityPolicyViolationEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `blockedURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] @@ -81,7 +83,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "documentURI")] - pub fn get_document_uri(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_document_uri( + this: &SecurityPolicyViolationEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `documentURI` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] @@ -91,7 +95,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "effectiveDirective")] - pub fn get_effective_directive(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_effective_directive( + this: &SecurityPolicyViolationEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `effectiveDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] @@ -111,7 +117,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "originalPolicy")] - pub fn get_original_policy(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_original_policy( + this: &SecurityPolicyViolationEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `originalPolicy` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] @@ -121,7 +129,8 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "referrer")] - pub fn get_referrer(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_referrer(this: &SecurityPolicyViolationEventInit) + -> Option<::alloc::string::String>; #[doc = "Change the `referrer` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] @@ -131,7 +140,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "sample")] - pub fn get_sample(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_sample(this: &SecurityPolicyViolationEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `sample` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] @@ -141,7 +150,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "sourceFile")] - pub fn get_source_file(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_source_file( + this: &SecurityPolicyViolationEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `sourceFile` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] @@ -161,7 +172,9 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] #[wasm_bindgen(method, getter = "violatedDirective")] - pub fn get_violated_directive(this: &SecurityPolicyViolationEventInit) -> Option; + pub fn get_violated_directive( + this: &SecurityPolicyViolationEventInit, + ) -> Option<::alloc::string::String>; #[doc = "Change the `violatedDirective` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] diff --git a/crates/web-sys/src/features/gen_Selection.rs b/crates/web-sys/src/features/gen_Selection.rs index ae14db54120..bd361871871 100644 --- a/crates/web-sys/src/features/gen_Selection.rs +++ b/crates/web-sys/src/features/gen_Selection.rs @@ -62,7 +62,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Selection`*"] - pub fn type_(this: &Selection) -> String; + pub fn type_(this: &Selection) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "Selection" , js_name = caretBidiLevel)] #[doc = "Getter for the `caretBidiLevel` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ServiceWorker.rs b/crates/web-sys/src/features/gen_ServiceWorker.rs index 3cd41e6c865..268362b6443 100644 --- a/crates/web-sys/src/features/gen_ServiceWorker.rs +++ b/crates/web-sys/src/features/gen_ServiceWorker.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] - pub fn script_url(this: &ServiceWorker) -> String; + pub fn script_url(this: &ServiceWorker) -> ::alloc::string::String; #[cfg(feature = "ServiceWorkerState")] # [wasm_bindgen (structural , method , getter , js_class = "ServiceWorker" , js_name = state)] #[doc = "Getter for the `state` field of this object."] diff --git a/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs b/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs index de92b4cf282..ba2036d5b84 100644 --- a/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs +++ b/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs @@ -102,7 +102,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getScopeForUrl)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] - pub fn get_scope_for_url(this: &ServiceWorkerContainer, url: &str) -> Result; + pub fn get_scope_for_url( + this: &ServiceWorkerContainer, + url: &str, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (method , structural , js_class = "ServiceWorkerContainer" , js_name = register)] #[doc = "The `register()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs b/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs index 5556ea0303b..12aaee05c68 100644 --- a/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs +++ b/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs @@ -42,7 +42,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] - pub fn scope(this: &ServiceWorkerRegistration) -> String; + pub fn scope(this: &ServiceWorkerRegistration) -> ::alloc::string::String; #[cfg(feature = "ServiceWorkerUpdateViaCache")] # [wasm_bindgen (structural , catch , method , getter , js_class = "ServiceWorkerRegistration" , js_name = updateViaCache)] #[doc = "Getter for the `updateViaCache` field of this object."] diff --git a/crates/web-sys/src/features/gen_ShadowRoot.rs b/crates/web-sys/src/features/gen_ShadowRoot.rs index 529ee182e59..500db8ef42c 100644 --- a/crates/web-sys/src/features/gen_ShadowRoot.rs +++ b/crates/web-sys/src/features/gen_ShadowRoot.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] - pub fn inner_html(this: &ShadowRoot) -> String; + pub fn inner_html(this: &ShadowRoot) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "ShadowRoot" , js_name = innerHTML)] #[doc = "Setter for the `innerHTML` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ShareData.rs b/crates/web-sys/src/features/gen_ShareData.rs index 2f366fb822c..dfd1d3591bf 100644 --- a/crates/web-sys/src/features/gen_ShareData.rs +++ b/crates/web-sys/src/features/gen_ShareData.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, getter = "text")] - pub fn get_text(this: &ShareData) -> Option; + pub fn get_text(this: &ShareData) -> Option<::alloc::string::String>; #[doc = "Change the `text` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, getter = "title")] - pub fn get_title(this: &ShareData) -> Option; + pub fn get_title(this: &ShareData) -> Option<::alloc::string::String>; #[doc = "Change the `title` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] #[wasm_bindgen(method, getter = "url")] - pub fn get_url(this: &ShareData) -> Option; + pub fn get_url(this: &ShareData) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ShareData`*"] diff --git a/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs index 9c680418c9c..fe6938b61d8 100644 --- a/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] - pub fn name(this: &SharedWorkerGlobalScope) -> String; + pub fn name(this: &SharedWorkerGlobalScope) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect)] #[doc = "Getter for the `onconnect` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SignResponse.rs b/crates/web-sys/src/features/gen_SignResponse.rs index 248bfe60512..7a16596b9f9 100644 --- a/crates/web-sys/src/features/gen_SignResponse.rs +++ b/crates/web-sys/src/features/gen_SignResponse.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "clientData")] - pub fn get_client_data(this: &SignResponse) -> Option; + pub fn get_client_data(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `clientData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "errorMessage")] - pub fn get_error_message(this: &SignResponse) -> Option; + pub fn get_error_message(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `errorMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "keyHandle")] - pub fn get_key_handle(this: &SignResponse) -> Option; + pub fn get_key_handle(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `keyHandle` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] #[wasm_bindgen(method, getter = "signatureData")] - pub fn get_signature_data(this: &SignResponse) -> Option; + pub fn get_signature_data(this: &SignResponse) -> Option<::alloc::string::String>; #[doc = "Change the `signatureData` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] diff --git a/crates/web-sys/src/features/gen_SocketElement.rs b/crates/web-sys/src/features/gen_SocketElement.rs index e1270b6a247..083f219d32b 100644 --- a/crates/web-sys/src/features/gen_SocketElement.rs +++ b/crates/web-sys/src/features/gen_SocketElement.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] #[wasm_bindgen(method, getter = "host")] - pub fn get_host(this: &SocketElement) -> Option; + pub fn get_host(this: &SocketElement) -> Option<::alloc::string::String>; #[doc = "Change the `host` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] diff --git a/crates/web-sys/src/features/gen_SpeechGrammar.rs b/crates/web-sys/src/features/gen_SpeechGrammar.rs index 346430e2146..c50b179daee 100644 --- a/crates/web-sys/src/features/gen_SpeechGrammar.rs +++ b/crates/web-sys/src/features/gen_SpeechGrammar.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] - pub fn src(this: &SpeechGrammar) -> Result; + pub fn src(this: &SpeechGrammar) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = src)] #[doc = "Setter for the `src` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechRecognition.rs b/crates/web-sys/src/features/gen_SpeechRecognition.rs index c2e1d9f81d4..f446bd30fb9 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognition.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognition.rs @@ -34,7 +34,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] - pub fn lang(this: &SpeechRecognition) -> String; + pub fn lang(this: &SpeechRecognition) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SpeechRecognition" , js_name = lang)] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] @@ -90,7 +90,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/serviceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] - pub fn service_uri(this: &SpeechRecognition) -> Result; + pub fn service_uri(this: &SpeechRecognition) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "SpeechRecognition" , js_name = serviceURI)] #[doc = "Setter for the `serviceURI` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs b/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs index 957b5c85a62..037beaf8133 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/transcript)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] - pub fn transcript(this: &SpeechRecognitionAlternative) -> String; + pub fn transcript(this: &SpeechRecognitionAlternative) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechRecognitionAlternative" , js_name = confidence)] #[doc = "Getter for the `confidence` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionError.rs b/crates/web-sys/src/features/gen_SpeechRecognitionError.rs index d297aad3477..c6dbea27575 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionError.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionError.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] - pub fn message(this: &SpeechRecognitionError) -> Option; + pub fn message(this: &SpeechRecognitionError) -> Option<::alloc::string::String>; #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionError")] #[doc = "The `new SpeechRecognitionError(..)` constructor, creating a new instance of `SpeechRecognitionError`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs b/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs index bc5e60a4e8e..cb7e52d934c 100644 --- a/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs +++ b/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs @@ -56,7 +56,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] #[wasm_bindgen(method, getter = "message")] - pub fn get_message(this: &SpeechRecognitionErrorInit) -> Option; + pub fn get_message(this: &SpeechRecognitionErrorInit) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs index 5ffb6825037..78cf097557c 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &SpeechSynthesisErrorEventInit) -> Option; + pub fn get_name(this: &SpeechSynthesisErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs b/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs index 29b842959a7..8979ba26f8f 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs @@ -47,7 +47,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] - pub fn name(this: &SpeechSynthesisEvent) -> Option; + pub fn name(this: &SpeechSynthesisEvent) -> Option<::alloc::string::String>; #[cfg(feature = "SpeechSynthesisEventInit")] #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisEvent")] #[doc = "The `new SpeechSynthesisEvent(..)` constructor, creating a new instance of `SpeechSynthesisEvent`."] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs b/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs index e3f4eed47a7..80048f51362 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &SpeechSynthesisEventInit) -> Option; + pub fn get_name(this: &SpeechSynthesisEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs b/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs index 0bd4f6ecc87..a6005cf5461 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] - pub fn text(this: &SpeechSynthesisUtterance) -> String; + pub fn text(this: &SpeechSynthesisUtterance) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] - pub fn lang(this: &SpeechSynthesisUtterance) -> String; + pub fn lang(this: &SpeechSynthesisUtterance) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = lang)] #[doc = "Setter for the `lang` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs b/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs index a03faee42cc..3d4d97dc7a4 100644 --- a/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs +++ b/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs @@ -18,21 +18,21 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/voiceURI)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] - pub fn voice_uri(this: &SpeechSynthesisVoice) -> String; + pub fn voice_uri(this: &SpeechSynthesisVoice) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = name)] #[doc = "Getter for the `name` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] - pub fn name(this: &SpeechSynthesisVoice) -> String; + pub fn name(this: &SpeechSynthesisVoice) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = lang)] #[doc = "Getter for the `lang` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/lang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] - pub fn lang(this: &SpeechSynthesisVoice) -> String; + pub fn lang(this: &SpeechSynthesisVoice) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = localService)] #[doc = "Getter for the `localService` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_Storage.rs b/crates/web-sys/src/features/gen_Storage.rs index 412d5997d20..e31ffc87a1f 100644 --- a/crates/web-sys/src/features/gen_Storage.rs +++ b/crates/web-sys/src/features/gen_Storage.rs @@ -32,14 +32,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] - pub fn get_item(this: &Storage, key: &str) -> Result, JsValue>; + pub fn get_item(this: &Storage, key: &str) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = key)] #[doc = "The `key()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] - pub fn key(this: &Storage, index: u32) -> Result, JsValue>; + pub fn key(this: &Storage, index: u32) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Storage" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Storage`*"] - pub fn get(this: &Storage, key: &str) -> Result, JsValue>; + pub fn get(this: &Storage, key: &str) -> Result, JsValue>; #[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_setter)] #[doc = "Indexing setter. As in the literal Javascript `this[key] = value`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_StorageEvent.rs b/crates/web-sys/src/features/gen_StorageEvent.rs index 55cfc058cba..782000997b6 100644 --- a/crates/web-sys/src/features/gen_StorageEvent.rs +++ b/crates/web-sys/src/features/gen_StorageEvent.rs @@ -18,28 +18,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/key)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] - pub fn key(this: &StorageEvent) -> Option; + pub fn key(this: &StorageEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = oldValue)] #[doc = "Getter for the `oldValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/oldValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] - pub fn old_value(this: &StorageEvent) -> Option; + pub fn old_value(this: &StorageEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = newValue)] #[doc = "Getter for the `newValue` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/newValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] - pub fn new_value(this: &StorageEvent) -> Option; + pub fn new_value(this: &StorageEvent) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = url)] #[doc = "Getter for the `url` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] - pub fn url(this: &StorageEvent) -> Option; + pub fn url(this: &StorageEvent) -> Option<::alloc::string::String>; #[cfg(feature = "Storage")] # [wasm_bindgen (structural , method , getter , js_class = "StorageEvent" , js_name = storageArea)] #[doc = "Getter for the `storageArea` field of this object."] diff --git a/crates/web-sys/src/features/gen_StorageEventInit.rs b/crates/web-sys/src/features/gen_StorageEventInit.rs index 51db6561485..63da9d1abe4 100644 --- a/crates/web-sys/src/features/gen_StorageEventInit.rs +++ b/crates/web-sys/src/features/gen_StorageEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "key")] - pub fn get_key(this: &StorageEventInit) -> Option; + pub fn get_key(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `key` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "newValue")] - pub fn get_new_value(this: &StorageEventInit) -> Option; + pub fn get_new_value(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `newValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "oldValue")] - pub fn get_old_value(this: &StorageEventInit) -> Option; + pub fn get_old_value(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `oldValue` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] @@ -86,7 +86,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] #[wasm_bindgen(method, getter = "url")] - pub fn get_url(this: &StorageEventInit) -> Option; + pub fn get_url(this: &StorageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `url` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] diff --git a/crates/web-sys/src/features/gen_StyleSheet.rs b/crates/web-sys/src/features/gen_StyleSheet.rs index f9a896d7668..6455da9a2f9 100644 --- a/crates/web-sys/src/features/gen_StyleSheet.rs +++ b/crates/web-sys/src/features/gen_StyleSheet.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] - pub fn type_(this: &StyleSheet) -> String; + pub fn type_(this: &StyleSheet) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "StyleSheet" , js_name = href)] #[doc = "Getter for the `href` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] - pub fn href(this: &StyleSheet) -> Result, JsValue>; + pub fn href(this: &StyleSheet) -> Result, JsValue>; #[cfg(feature = "Node")] # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = ownerNode)] #[doc = "Getter for the `ownerNode` field of this object."] @@ -47,7 +47,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] - pub fn title(this: &StyleSheet) -> Option; + pub fn title(this: &StyleSheet) -> Option<::alloc::string::String>; #[cfg(feature = "MediaList")] # [wasm_bindgen (structural , method , getter , js_class = "StyleSheet" , js_name = media)] #[doc = "Getter for the `media` field of this object."] diff --git a/crates/web-sys/src/features/gen_SvgAngle.rs b/crates/web-sys/src/features/gen_SvgAngle.rs index e845ac6aebb..ba774cec3ce 100644 --- a/crates/web-sys/src/features/gen_SvgAngle.rs +++ b/crates/web-sys/src/features/gen_SvgAngle.rs @@ -53,7 +53,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] - pub fn value_as_string(this: &SvgAngle) -> String; + pub fn value_as_string(this: &SvgAngle) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAngle" , js_name = valueAsString)] #[doc = "Setter for the `valueAsString` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgAnimatedString.rs b/crates/web-sys/src/features/gen_SvgAnimatedString.rs index 921c4e854cb..28db97f2e89 100644 --- a/crates/web-sys/src/features/gen_SvgAnimatedString.rs +++ b/crates/web-sys/src/features/gen_SvgAnimatedString.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/baseVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] - pub fn base_val(this: &SvgAnimatedString) -> String; + pub fn base_val(this: &SvgAnimatedString) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAnimatedString" , js_name = baseVal)] #[doc = "Setter for the `baseVal` field of this object."] #[doc = ""] @@ -32,5 +32,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/animVal)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] - pub fn anim_val(this: &SvgAnimatedString) -> String; + pub fn anim_val(this: &SvgAnimatedString) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_SvgElement.rs b/crates/web-sys/src/features/gen_SvgElement.rs index 484e6be2bc1..443755ebbc4 100644 --- a/crates/web-sys/src/features/gen_SvgElement.rs +++ b/crates/web-sys/src/features/gen_SvgElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] - pub fn id(this: &SvgElement) -> String; + pub fn id(this: &SvgElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] @@ -1275,7 +1275,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/nonce)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] - pub fn nonce(this: &SvgElement) -> String; + pub fn nonce(this: &SvgElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGElement" , js_name = nonce)] #[doc = "Setter for the `nonce` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgLength.rs b/crates/web-sys/src/features/gen_SvgLength.rs index a2e87fdd829..e365d98e858 100644 --- a/crates/web-sys/src/features/gen_SvgLength.rs +++ b/crates/web-sys/src/features/gen_SvgLength.rs @@ -53,7 +53,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueAsString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] - pub fn value_as_string(this: &SvgLength) -> String; + pub fn value_as_string(this: &SvgLength) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGLength" , js_name = valueAsString)] #[doc = "Setter for the `valueAsString` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgPathSeg.rs b/crates/web-sys/src/features/gen_SvgPathSeg.rs index 57b15fb5f68..de9a214492a 100644 --- a/crates/web-sys/src/features/gen_SvgPathSeg.rs +++ b/crates/web-sys/src/features/gen_SvgPathSeg.rs @@ -25,7 +25,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegTypeAsLetter)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] - pub fn path_seg_type_as_letter(this: &SvgPathSeg) -> String; + pub fn path_seg_type_as_letter(this: &SvgPathSeg) -> ::alloc::string::String; } impl SvgPathSeg { #[doc = "The `SVGPathSeg.PATHSEG_UNKNOWN` const."] diff --git a/crates/web-sys/src/features/gen_SvgScriptElement.rs b/crates/web-sys/src/features/gen_SvgScriptElement.rs index d888f9b5c98..14d016bda1c 100644 --- a/crates/web-sys/src/features/gen_SvgScriptElement.rs +++ b/crates/web-sys/src/features/gen_SvgScriptElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] - pub fn type_(this: &SvgScriptElement) -> String; + pub fn type_(this: &SvgScriptElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGScriptElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/crossOrigin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] - pub fn cross_origin(this: &SvgScriptElement) -> Option; + pub fn cross_origin(this: &SvgScriptElement) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , setter , js_class = "SVGScriptElement" , js_name = crossOrigin)] #[doc = "Setter for the `crossOrigin` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgStringList.rs b/crates/web-sys/src/features/gen_SvgStringList.rs index 774a6360095..9344ea162dc 100644 --- a/crates/web-sys/src/features/gen_SvgStringList.rs +++ b/crates/web-sys/src/features/gen_SvgStringList.rs @@ -32,7 +32,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/appendItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] - pub fn append_item(this: &SvgStringList, new_item: &str) -> Result; + pub fn append_item( + this: &SvgStringList, + new_item: &str, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (method , structural , js_class = "SVGStringList" , js_name = clear)] #[doc = "The `clear()` method."] #[doc = ""] @@ -46,14 +49,17 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/getItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] - pub fn get_item(this: &SvgStringList, index: u32) -> Result; + pub fn get_item(this: &SvgStringList, index: u32) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = initialize)] #[doc = "The `initialize()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/initialize)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] - pub fn initialize(this: &SvgStringList, new_item: &str) -> Result; + pub fn initialize( + this: &SvgStringList, + new_item: &str, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = insertItemBefore)] #[doc = "The `insertItemBefore()` method."] #[doc = ""] @@ -64,14 +70,17 @@ extern "C" { this: &SvgStringList, new_item: &str, index: u32, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = removeItem)] #[doc = "The `removeItem()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/removeItem)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] - pub fn remove_item(this: &SvgStringList, index: u32) -> Result; + pub fn remove_item( + this: &SvgStringList, + index: u32, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "SVGStringList" , js_name = replaceItem)] #[doc = "The `replaceItem()` method."] #[doc = ""] @@ -82,12 +91,12 @@ extern "C" { this: &SvgStringList, new_item: &str, index: u32, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; #[wasm_bindgen(method, structural, js_class = "SVGStringList", indexing_getter)] #[doc = "Indexing getter. As in the literal Javascript `this[key]`."] #[doc = ""] #[doc = ""] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] - pub fn get(this: &SvgStringList, index: u32) -> Option; + pub fn get(this: &SvgStringList, index: u32) -> Option<::alloc::string::String>; } diff --git a/crates/web-sys/src/features/gen_SvgStyleElement.rs b/crates/web-sys/src/features/gen_SvgStyleElement.rs index 23c0f51dff0..7ee045abfbe 100644 --- a/crates/web-sys/src/features/gen_SvgStyleElement.rs +++ b/crates/web-sys/src/features/gen_SvgStyleElement.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/xmlspace)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] - pub fn xmlspace(this: &SvgStyleElement) -> String; + pub fn xmlspace(this: &SvgStyleElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = xmlspace)] #[doc = "Setter for the `xmlspace` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] - pub fn type_(this: &SvgStyleElement) -> String; + pub fn type_(this: &SvgStyleElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -46,7 +46,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/media)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] - pub fn media(this: &SvgStyleElement) -> String; + pub fn media(this: &SvgStyleElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = media)] #[doc = "Setter for the `media` field of this object."] #[doc = ""] @@ -60,7 +60,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] - pub fn title(this: &SvgStyleElement) -> String; + pub fn title(this: &SvgStyleElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGStyleElement" , js_name = title)] #[doc = "Setter for the `title` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_SvgaElement.rs b/crates/web-sys/src/features/gen_SvgaElement.rs index efbf2c93e11..f4bc67cad3f 100644 --- a/crates/web-sys/src/features/gen_SvgaElement.rs +++ b/crates/web-sys/src/features/gen_SvgaElement.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/download)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] - pub fn download(this: &SvgaElement) -> String; + pub fn download(this: &SvgaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = download)] #[doc = "Setter for the `download` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/ping)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] - pub fn ping(this: &SvgaElement) -> String; + pub fn ping(this: &SvgaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = ping)] #[doc = "Setter for the `ping` field of this object."] #[doc = ""] @@ -54,7 +54,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/rel)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] - pub fn rel(this: &SvgaElement) -> String; + pub fn rel(this: &SvgaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = rel)] #[doc = "Setter for the `rel` field of this object."] #[doc = ""] @@ -68,7 +68,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] - pub fn referrer_policy(this: &SvgaElement) -> String; + pub fn referrer_policy(this: &SvgaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = referrerPolicy)] #[doc = "Setter for the `referrerPolicy` field of this object."] #[doc = ""] @@ -90,7 +90,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/hreflang)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] - pub fn hreflang(this: &SvgaElement) -> String; + pub fn hreflang(this: &SvgaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = hreflang)] #[doc = "Setter for the `hreflang` field of this object."] #[doc = ""] @@ -104,7 +104,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/type)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] - pub fn type_(this: &SvgaElement) -> String; + pub fn type_(this: &SvgaElement) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "SVGAElement" , js_name = type)] #[doc = "Setter for the `type` field of this object."] #[doc = ""] @@ -118,7 +118,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] - pub fn text(this: &SvgaElement) -> Result; + pub fn text(this: &SvgaElement) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "SVGAElement" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TcpSocket.rs b/crates/web-sys/src/features/gen_TcpSocket.rs index 85c4a55ed0a..86fb34450b2 100644 --- a/crates/web-sys/src/features/gen_TcpSocket.rs +++ b/crates/web-sys/src/features/gen_TcpSocket.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] - pub fn host(this: &TcpSocket) -> String; + pub fn host(this: &TcpSocket) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocket" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs b/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs index e87fdf448e9..306efd487f2 100644 --- a/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs +++ b/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] - pub fn name(this: &TcpSocketErrorEvent) -> String; + pub fn name(this: &TcpSocketErrorEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = message)] #[doc = "Getter for the `message` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/message)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] - pub fn message(this: &TcpSocketErrorEvent) -> String; + pub fn message(this: &TcpSocketErrorEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "TCPSocketErrorEvent")] #[doc = "The `new TcpSocketErrorEvent(..)` constructor, creating a new instance of `TcpSocketErrorEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs b/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs index 63c13ff0397..b51f897d895 100644 --- a/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs +++ b/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, getter = "message")] - pub fn get_message(this: &TcpSocketErrorEventInit) -> Option; + pub fn get_message(this: &TcpSocketErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `message` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &TcpSocketErrorEventInit) -> Option; + pub fn get_name(this: &TcpSocketErrorEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] diff --git a/crates/web-sys/src/features/gen_Text.rs b/crates/web-sys/src/features/gen_Text.rs index d6cb82f1b0b..e629e597189 100644 --- a/crates/web-sys/src/features/gen_Text.rs +++ b/crates/web-sys/src/features/gen_Text.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Text`*"] - pub fn whole_text(this: &Text) -> Result; + pub fn whole_text(this: &Text) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "HtmlSlotElement")] # [wasm_bindgen (structural , method , getter , js_class = "Text" , js_name = assignedSlot)] #[doc = "Getter for the `assignedSlot` field of this object."] diff --git a/crates/web-sys/src/features/gen_TextDecoder.rs b/crates/web-sys/src/features/gen_TextDecoder.rs index 823e8ad20e2..12bbf6f87cd 100644 --- a/crates/web-sys/src/features/gen_TextDecoder.rs +++ b/crates/web-sys/src/features/gen_TextDecoder.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] - pub fn encoding(this: &TextDecoder) -> String; + pub fn encoding(this: &TextDecoder) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "TextDecoder" , js_name = fatal)] #[doc = "Getter for the `fatal` field of this object."] #[doc = ""] @@ -57,7 +57,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] - pub fn decode(this: &TextDecoder) -> Result; + pub fn decode(this: &TextDecoder) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] @@ -67,14 +67,17 @@ extern "C" { pub fn decode_with_buffer_source( this: &TextDecoder, input: &::js_sys::Object, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] - pub fn decode_with_u8_array(this: &TextDecoder, input: &[u8]) -> Result; + pub fn decode_with_u8_array( + this: &TextDecoder, + input: &[u8], + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] #[doc = ""] @@ -84,7 +87,7 @@ extern "C" { pub fn decode_with_js_u8_array( this: &TextDecoder, input: &::js_sys::Uint8Array, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "TextDecodeOptions")] # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] @@ -96,7 +99,7 @@ extern "C" { this: &TextDecoder, input: &::js_sys::Object, options: &TextDecodeOptions, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "TextDecodeOptions")] # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] @@ -108,7 +111,7 @@ extern "C" { this: &TextDecoder, input: &[u8], options: &TextDecodeOptions, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "TextDecodeOptions")] # [wasm_bindgen (catch , method , structural , js_class = "TextDecoder" , js_name = decode)] #[doc = "The `decode()` method."] @@ -120,5 +123,5 @@ extern "C" { this: &TextDecoder, input: &::js_sys::Uint8Array, options: &TextDecodeOptions, - ) -> Result; + ) -> Result<::alloc::string::String, JsValue>; } diff --git a/crates/web-sys/src/features/gen_TextEncoder.rs b/crates/web-sys/src/features/gen_TextEncoder.rs index 4a7a815b91c..9585b5f87c6 100644 --- a/crates/web-sys/src/features/gen_TextEncoder.rs +++ b/crates/web-sys/src/features/gen_TextEncoder.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] - pub fn encoding(this: &TextEncoder) -> String; + pub fn encoding(this: &TextEncoder) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "TextEncoder")] #[doc = "The `new TextEncoder(..)` constructor, creating a new instance of `TextEncoder`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TextTrack.rs b/crates/web-sys/src/features/gen_TextTrack.rs index 73443abe3d8..578de269c91 100644 --- a/crates/web-sys/src/features/gen_TextTrack.rs +++ b/crates/web-sys/src/features/gen_TextTrack.rs @@ -26,28 +26,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] - pub fn label(this: &TextTrack) -> String; + pub fn label(this: &TextTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] - pub fn language(this: &TextTrack) -> String; + pub fn language(this: &TextTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = id)] #[doc = "Getter for the `id` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] - pub fn id(this: &TextTrack) -> String; + pub fn id(this: &TextTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = inBandMetadataTrackDispatchType)] #[doc = "Getter for the `inBandMetadataTrackDispatchType` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] - pub fn in_band_metadata_track_dispatch_type(this: &TextTrack) -> String; + pub fn in_band_metadata_track_dispatch_type(this: &TextTrack) -> ::alloc::string::String; #[cfg(feature = "TextTrackMode")] # [wasm_bindgen (structural , method , getter , js_class = "TextTrack" , js_name = mode)] #[doc = "Getter for the `mode` field of this object."] diff --git a/crates/web-sys/src/features/gen_TextTrackCue.rs b/crates/web-sys/src/features/gen_TextTrackCue.rs index c1a1fe72585..08983047b7c 100644 --- a/crates/web-sys/src/features/gen_TextTrackCue.rs +++ b/crates/web-sys/src/features/gen_TextTrackCue.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] - pub fn id(this: &TextTrackCue) -> String; + pub fn id(this: &TextTrackCue) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "TextTrackCue" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ToggleEvent.rs b/crates/web-sys/src/features/gen_ToggleEvent.rs index 4bd2f383fda..34fa012e458 100644 --- a/crates/web-sys/src/features/gen_ToggleEvent.rs +++ b/crates/web-sys/src/features/gen_ToggleEvent.rs @@ -18,14 +18,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/oldState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEvent`*"] - pub fn old_state(this: &ToggleEvent) -> String; + pub fn old_state(this: &ToggleEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "ToggleEvent" , js_name = newState)] #[doc = "Getter for the `newState` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ToggleEvent/newState)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEvent`*"] - pub fn new_state(this: &ToggleEvent) -> String; + pub fn new_state(this: &ToggleEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "ToggleEvent")] #[doc = "The `new ToggleEvent(..)` constructor, creating a new instance of `ToggleEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_ToggleEventInit.rs b/crates/web-sys/src/features/gen_ToggleEventInit.rs index cec8e059b99..e9028eb05d9 100644 --- a/crates/web-sys/src/features/gen_ToggleEventInit.rs +++ b/crates/web-sys/src/features/gen_ToggleEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, getter = "newState")] - pub fn get_new_state(this: &ToggleEventInit) -> Option; + pub fn get_new_state(this: &ToggleEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `newState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] #[wasm_bindgen(method, getter = "oldState")] - pub fn get_old_state(this: &ToggleEventInit) -> Option; + pub fn get_old_state(this: &ToggleEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `oldState` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `ToggleEventInit`*"] diff --git a/crates/web-sys/src/features/gen_TokenBinding.rs b/crates/web-sys/src/features/gen_TokenBinding.rs index 3ebc6df4f23..00a5027011c 100644 --- a/crates/web-sys/src/features/gen_TokenBinding.rs +++ b/crates/web-sys/src/features/gen_TokenBinding.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] #[wasm_bindgen(method, getter = "id")] - pub fn get_id(this: &TokenBinding) -> Option; + pub fn get_id(this: &TokenBinding) -> Option<::alloc::string::String>; #[doc = "Change the `id` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] #[wasm_bindgen(method, getter = "status")] - pub fn get_status(this: &TokenBinding) -> String; + pub fn get_status(this: &TokenBinding) -> ::alloc::string::String; #[doc = "Change the `status` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TokenBinding`*"] diff --git a/crates/web-sys/src/features/gen_TransitionEvent.rs b/crates/web-sys/src/features/gen_TransitionEvent.rs index 65b9ab323e0..39ea99fda00 100644 --- a/crates/web-sys/src/features/gen_TransitionEvent.rs +++ b/crates/web-sys/src/features/gen_TransitionEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/propertyName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] - pub fn property_name(this: &TransitionEvent) -> String; + pub fn property_name(this: &TransitionEvent) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "TransitionEvent" , js_name = elapsedTime)] #[doc = "Getter for the `elapsedTime` field of this object."] #[doc = ""] @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/pseudoElement)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] - pub fn pseudo_element(this: &TransitionEvent) -> String; + pub fn pseudo_element(this: &TransitionEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "TransitionEvent")] #[doc = "The `new TransitionEvent(..)` constructor, creating a new instance of `TransitionEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_TransitionEventInit.rs b/crates/web-sys/src/features/gen_TransitionEventInit.rs index b3ede75c465..f94c28261cd 100644 --- a/crates/web-sys/src/features/gen_TransitionEventInit.rs +++ b/crates/web-sys/src/features/gen_TransitionEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "propertyName")] - pub fn get_property_name(this: &TransitionEventInit) -> Option; + pub fn get_property_name(this: &TransitionEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `propertyName` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] #[wasm_bindgen(method, getter = "pseudoElement")] - pub fn get_pseudo_element(this: &TransitionEventInit) -> Option; + pub fn get_pseudo_element(this: &TransitionEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `pseudoElement` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] diff --git a/crates/web-sys/src/features/gen_TreeCellInfo.rs b/crates/web-sys/src/features/gen_TreeCellInfo.rs index 75327d1ee85..b87771c1392 100644 --- a/crates/web-sys/src/features/gen_TreeCellInfo.rs +++ b/crates/web-sys/src/features/gen_TreeCellInfo.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] #[wasm_bindgen(method, getter = "childElt")] - pub fn get_child_elt(this: &TreeCellInfo) -> Option; + pub fn get_child_elt(this: &TreeCellInfo) -> Option<::alloc::string::String>; #[doc = "Change the `childElt` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] diff --git a/crates/web-sys/src/features/gen_TreeView.rs b/crates/web-sys/src/features/gen_TreeView.rs index 036e59a3dd2..b5145edf2ac 100644 --- a/crates/web-sys/src/features/gen_TreeView.rs +++ b/crates/web-sys/src/features/gen_TreeView.rs @@ -65,7 +65,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getRowProperties)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] - pub fn get_row_properties(this: &TreeView, row: i32) -> Result; + pub fn get_row_properties( + this: &TreeView, + row: i32, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "TreeView" , js_name = hasNextSibling)] #[doc = "The `hasNextSibling()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_U2fClientData.rs b/crates/web-sys/src/features/gen_U2fClientData.rs index a67f45af5d5..8dd7051e06e 100644 --- a/crates/web-sys/src/features/gen_U2fClientData.rs +++ b/crates/web-sys/src/features/gen_U2fClientData.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, getter = "challenge")] - pub fn get_challenge(this: &U2fClientData) -> Option; + pub fn get_challenge(this: &U2fClientData) -> Option<::alloc::string::String>; #[doc = "Change the `challenge` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, getter = "origin")] - pub fn get_origin(this: &U2fClientData) -> Option; + pub fn get_origin(this: &U2fClientData) -> Option<::alloc::string::String>; #[doc = "Change the `origin` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] #[wasm_bindgen(method, getter = "typ")] - pub fn get_typ(this: &U2fClientData) -> Option; + pub fn get_typ(this: &U2fClientData) -> Option<::alloc::string::String>; #[doc = "Change the `typ` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] diff --git a/crates/web-sys/src/features/gen_UaDataValues.rs b/crates/web-sys/src/features/gen_UaDataValues.rs index 02cc3e761c1..40057b752da 100644 --- a/crates/web-sys/src/features/gen_UaDataValues.rs +++ b/crates/web-sys/src/features/gen_UaDataValues.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "architecture")] - pub fn get_architecture(this: &UaDataValues) -> Option; + pub fn get_architecture(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `architecture` field of this object."] #[doc = ""] @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "bitness")] - pub fn get_bitness(this: &UaDataValues) -> Option; + pub fn get_bitness(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `bitness` field of this object."] #[doc = ""] @@ -130,7 +130,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "model")] - pub fn get_model(this: &UaDataValues) -> Option; + pub fn get_model(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `model` field of this object."] #[doc = ""] @@ -148,7 +148,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "platform")] - pub fn get_platform(this: &UaDataValues) -> Option; + pub fn get_platform(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `platform` field of this object."] #[doc = ""] @@ -166,7 +166,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "platformVersion")] - pub fn get_platform_version(this: &UaDataValues) -> Option; + pub fn get_platform_version(this: &UaDataValues) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `platformVersion` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UaLowEntropyJson.rs b/crates/web-sys/src/features/gen_UaLowEntropyJson.rs index 4a099e10946..b41243775bb 100644 --- a/crates/web-sys/src/features/gen_UaLowEntropyJson.rs +++ b/crates/web-sys/src/features/gen_UaLowEntropyJson.rs @@ -58,7 +58,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "platform")] - pub fn get_platform(this: &UaLowEntropyJson) -> Option; + pub fn get_platform(this: &UaLowEntropyJson) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `platform` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UdpMessageEventInit.rs b/crates/web-sys/src/features/gen_UdpMessageEventInit.rs index 7d8c01cf491..1a3d8596fcd 100644 --- a/crates/web-sys/src/features/gen_UdpMessageEventInit.rs +++ b/crates/web-sys/src/features/gen_UdpMessageEventInit.rs @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] #[wasm_bindgen(method, getter = "remoteAddress")] - pub fn get_remote_address(this: &UdpMessageEventInit) -> Option; + pub fn get_remote_address(this: &UdpMessageEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] diff --git a/crates/web-sys/src/features/gen_UdpOptions.rs b/crates/web-sys/src/features/gen_UdpOptions.rs index 99b8f998ea1..71af774a39b 100644 --- a/crates/web-sys/src/features/gen_UdpOptions.rs +++ b/crates/web-sys/src/features/gen_UdpOptions.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "localAddress")] - pub fn get_local_address(this: &UdpOptions) -> Option; + pub fn get_local_address(this: &UdpOptions) -> Option<::alloc::string::String>; #[doc = "Change the `localAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] #[wasm_bindgen(method, getter = "remoteAddress")] - pub fn get_remote_address(this: &UdpOptions) -> Option; + pub fn get_remote_address(this: &UdpOptions) -> Option<::alloc::string::String>; #[doc = "Change the `remoteAddress` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] diff --git a/crates/web-sys/src/features/gen_Url.rs b/crates/web-sys/src/features/gen_Url.rs index 7665809b137..e229dc5628c 100644 --- a/crates/web-sys/src/features/gen_Url.rs +++ b/crates/web-sys/src/features/gen_Url.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn href(this: &Url) -> String; + pub fn href(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = href)] #[doc = "Setter for the `href` field of this object."] #[doc = ""] @@ -32,14 +32,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn origin(this: &Url) -> String; + pub fn origin(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "URL" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn protocol(this: &Url) -> String; + pub fn protocol(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = protocol)] #[doc = "Setter for the `protocol` field of this object."] #[doc = ""] @@ -53,7 +53,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/username)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn username(this: &Url) -> String; + pub fn username(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = username)] #[doc = "Setter for the `username` field of this object."] #[doc = ""] @@ -67,7 +67,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/password)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn password(this: &Url) -> String; + pub fn password(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = password)] #[doc = "Setter for the `password` field of this object."] #[doc = ""] @@ -81,7 +81,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn host(this: &Url) -> String; + pub fn host(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = host)] #[doc = "Setter for the `host` field of this object."] #[doc = ""] @@ -95,7 +95,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn hostname(this: &Url) -> String; + pub fn hostname(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = hostname)] #[doc = "Setter for the `hostname` field of this object."] #[doc = ""] @@ -109,7 +109,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn port(this: &Url) -> String; + pub fn port(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = port)] #[doc = "Setter for the `port` field of this object."] #[doc = ""] @@ -123,7 +123,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn pathname(this: &Url) -> String; + pub fn pathname(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = pathname)] #[doc = "Setter for the `pathname` field of this object."] #[doc = ""] @@ -137,7 +137,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn search(this: &Url) -> String; + pub fn search(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = search)] #[doc = "Setter for the `search` field of this object."] #[doc = ""] @@ -159,7 +159,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn hash(this: &Url) -> String; + pub fn hash(this: &Url) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "URL" , js_name = hash)] #[doc = "Setter for the `hash` field of this object."] #[doc = ""] @@ -188,7 +188,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Blob`, `Url`*"] - pub fn create_object_url_with_blob(blob: &Blob) -> Result; + pub fn create_object_url_with_blob(blob: &Blob) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "MediaSource")] # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = createObjectURL)] #[doc = "The `createObjectURL()` method."] @@ -196,7 +196,9 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL_static)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `Url`*"] - pub fn create_object_url_with_source(source: &MediaSource) -> Result; + pub fn create_object_url_with_source( + source: &MediaSource, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , static_method_of = Url , js_class = "URL" , js_name = revokeObjectURL)] #[doc = "The `revokeObjectURL()` method."] #[doc = ""] @@ -210,5 +212,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/toJSON)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Url`*"] - pub fn to_json(this: &Url) -> String; + pub fn to_json(this: &Url) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_UrlSearchParams.rs b/crates/web-sys/src/features/gen_UrlSearchParams.rs index 0e3132681e6..db83392f4d5 100644 --- a/crates/web-sys/src/features/gen_UrlSearchParams.rs +++ b/crates/web-sys/src/features/gen_UrlSearchParams.rs @@ -78,7 +78,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] - pub fn get(this: &UrlSearchParams, name: &str) -> Option; + pub fn get(this: &UrlSearchParams, name: &str) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "URLSearchParams" , js_name = getAll)] #[doc = "The `getAll()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_UsbAlternateInterface.rs b/crates/web-sys/src/features/gen_UsbAlternateInterface.rs index 668eae3ca20..1d9b17a2894 100644 --- a/crates/web-sys/src/features/gen_UsbAlternateInterface.rs +++ b/crates/web-sys/src/features/gen_UsbAlternateInterface.rs @@ -70,7 +70,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn interface_name(this: &UsbAlternateInterface) -> Option; + pub fn interface_name(this: &UsbAlternateInterface) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBAlternateInterface" , js_name = endpoints)] #[doc = "Getter for the `endpoints` field of this object."] diff --git a/crates/web-sys/src/features/gen_UsbConfiguration.rs b/crates/web-sys/src/features/gen_UsbConfiguration.rs index 02307adbd73..b7fe74c40a7 100644 --- a/crates/web-sys/src/features/gen_UsbConfiguration.rs +++ b/crates/web-sys/src/features/gen_UsbConfiguration.rs @@ -37,7 +37,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn configuration_name(this: &UsbConfiguration) -> Option; + pub fn configuration_name(this: &UsbConfiguration) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBConfiguration" , js_name = interfaces)] #[doc = "Getter for the `interfaces` field of this object."] diff --git a/crates/web-sys/src/features/gen_UsbDevice.rs b/crates/web-sys/src/features/gen_UsbDevice.rs index 8ac1f4737b6..4cc4104e9fa 100644 --- a/crates/web-sys/src/features/gen_UsbDevice.rs +++ b/crates/web-sys/src/features/gen_UsbDevice.rs @@ -147,7 +147,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn manufacturer_name(this: &UsbDevice) -> Option; + pub fn manufacturer_name(this: &UsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = productName)] #[doc = "Getter for the `productName` field of this object."] @@ -158,7 +158,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn product_name(this: &UsbDevice) -> Option; + pub fn product_name(this: &UsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = serialNumber)] #[doc = "Getter for the `serialNumber` field of this object."] @@ -169,7 +169,7 @@ extern "C" { #[doc = ""] #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - pub fn serial_number(this: &UsbDevice) -> Option; + pub fn serial_number(this: &UsbDevice) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[cfg(feature = "UsbConfiguration")] # [wasm_bindgen (structural , method , getter , js_class = "USBDevice" , js_name = configuration)] diff --git a/crates/web-sys/src/features/gen_UsbDeviceFilter.rs b/crates/web-sys/src/features/gen_UsbDeviceFilter.rs index 411a66a560b..e25da163b83 100644 --- a/crates/web-sys/src/features/gen_UsbDeviceFilter.rs +++ b/crates/web-sys/src/features/gen_UsbDeviceFilter.rs @@ -76,7 +76,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "serialNumber")] - pub fn get_serial_number(this: &UsbDeviceFilter) -> Option; + pub fn get_serial_number(this: &UsbDeviceFilter) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `serialNumber` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoConfiguration.rs b/crates/web-sys/src/features/gen_VideoConfiguration.rs index d6467cf6b20..aa6b2a6f3bd 100644 --- a/crates/web-sys/src/features/gen_VideoConfiguration.rs +++ b/crates/web-sys/src/features/gen_VideoConfiguration.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "contentType")] - pub fn get_content_type(this: &VideoConfiguration) -> Option; + pub fn get_content_type(this: &VideoConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `contentType` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] #[wasm_bindgen(method, getter = "framerate")] - pub fn get_framerate(this: &VideoConfiguration) -> Option; + pub fn get_framerate(this: &VideoConfiguration) -> Option<::alloc::string::String>; #[doc = "Change the `framerate` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] diff --git a/crates/web-sys/src/features/gen_VideoDecoderConfig.rs b/crates/web-sys/src/features/gen_VideoDecoderConfig.rs index 44c205a0984..3ff73219975 100644 --- a/crates/web-sys/src/features/gen_VideoDecoderConfig.rs +++ b/crates/web-sys/src/features/gen_VideoDecoderConfig.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] - pub fn get_codec(this: &VideoDecoderConfig) -> String; + pub fn get_codec(this: &VideoDecoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoEncoderConfig.rs b/crates/web-sys/src/features/gen_VideoEncoderConfig.rs index b497f718d8b..55400176e0c 100644 --- a/crates/web-sys/src/features/gen_VideoEncoderConfig.rs +++ b/crates/web-sys/src/features/gen_VideoEncoderConfig.rs @@ -60,7 +60,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "codec")] - pub fn get_codec(this: &VideoEncoderConfig) -> String; + pub fn get_codec(this: &VideoEncoderConfig) -> ::alloc::string::String; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `codec` field of this object."] #[doc = ""] @@ -190,7 +190,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "scalabilityMode")] - pub fn get_scalability_mode(this: &VideoEncoderConfig) -> Option; + pub fn get_scalability_mode(this: &VideoEncoderConfig) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `scalabilityMode` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VideoTrack.rs b/crates/web-sys/src/features/gen_VideoTrack.rs index aa62eb051ee..6af0862f1ef 100644 --- a/crates/web-sys/src/features/gen_VideoTrack.rs +++ b/crates/web-sys/src/features/gen_VideoTrack.rs @@ -18,28 +18,28 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] - pub fn id(this: &VideoTrack) -> String; + pub fn id(this: &VideoTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = kind)] #[doc = "Getter for the `kind` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/kind)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] - pub fn kind(this: &VideoTrack) -> String; + pub fn kind(this: &VideoTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = label)] #[doc = "Getter for the `label` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/label)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] - pub fn label(this: &VideoTrack) -> String; + pub fn label(this: &VideoTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] - pub fn language(this: &VideoTrack) -> String; + pub fn language(this: &VideoTrack) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "VideoTrack" , js_name = selected)] #[doc = "Getter for the `selected` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VrDisplay.rs b/crates/web-sys/src/features/gen_VrDisplay.rs index 2abf7e140d3..99c27ee51ae 100644 --- a/crates/web-sys/src/features/gen_VrDisplay.rs +++ b/crates/web-sys/src/features/gen_VrDisplay.rs @@ -55,7 +55,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] - pub fn display_name(this: &VrDisplay) -> String; + pub fn display_name(this: &VrDisplay) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = depthNear)] #[doc = "Getter for the `depthNear` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs b/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs index 788628127b8..4779638a56a 100644 --- a/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs +++ b/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs @@ -25,7 +25,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/base64Image)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] - pub fn base64_image(this: &VrSubmitFrameResult) -> Option; + pub fn base64_image(this: &VrSubmitFrameResult) -> Option<::alloc::string::String>; #[wasm_bindgen(catch, constructor, js_class = "VRSubmitFrameResult")] #[doc = "The `new VrSubmitFrameResult(..)` constructor, creating a new instance of `VrSubmitFrameResult`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VttCue.rs b/crates/web-sys/src/features/gen_VttCue.rs index e97a4326b5f..6598a915ef6 100644 --- a/crates/web-sys/src/features/gen_VttCue.rs +++ b/crates/web-sys/src/features/gen_VttCue.rs @@ -186,7 +186,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] - pub fn text(this: &VttCue) -> String; + pub fn text(this: &VttCue) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "VTTCue" , js_name = text)] #[doc = "Setter for the `text` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_VttRegion.rs b/crates/web-sys/src/features/gen_VttRegion.rs index 116a3438cab..c5c85a514cb 100644 --- a/crates/web-sys/src/features/gen_VttRegion.rs +++ b/crates/web-sys/src/features/gen_VttRegion.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] - pub fn id(this: &VttRegion) -> String; + pub fn id(this: &VttRegion) -> ::alloc::string::String; # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = id)] #[doc = "Setter for the `id` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs b/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs index 32e59caa273..0c854aed654 100644 --- a/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs +++ b/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs @@ -1976,7 +1976,7 @@ extern "C" { this: &WebGl2RenderingContext, program: &WebGlProgram, uniform_block_index: u32, - ) -> Option; + ) -> Option<::alloc::string::String>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniformBlockParameter)] #[doc = "The `getActiveUniformBlockParameter()` method."] @@ -7307,7 +7307,7 @@ extern "C" { pub fn get_program_info_log( this: &WebGl2RenderingContext, program: &WebGlProgram, - ) -> Option; + ) -> Option<::alloc::string::String>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getProgramParameter)] #[doc = "The `getProgramParameter()` method."] @@ -7341,7 +7341,7 @@ extern "C" { pub fn get_shader_info_log( this: &WebGl2RenderingContext, shader: &WebGlShader, - ) -> Option; + ) -> Option<::alloc::string::String>; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderParameter)] #[doc = "The `getShaderParameter()` method."] @@ -7373,8 +7373,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] - pub fn get_shader_source(this: &WebGl2RenderingContext, shader: &WebGlShader) - -> Option; + pub fn get_shader_source( + this: &WebGl2RenderingContext, + shader: &WebGlShader, + ) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "WebGL2RenderingContext" , js_name = getSupportedExtensions)] #[doc = "The `getSupportedExtensions()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlActiveInfo.rs b/crates/web-sys/src/features/gen_WebGlActiveInfo.rs index 9bc90465d1a..b8572f1a90a 100644 --- a/crates/web-sys/src/features/gen_WebGlActiveInfo.rs +++ b/crates/web-sys/src/features/gen_WebGlActiveInfo.rs @@ -32,5 +32,5 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] - pub fn name(this: &WebGlActiveInfo) -> String; + pub fn name(this: &WebGlActiveInfo) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_WebGlContextEvent.rs b/crates/web-sys/src/features/gen_WebGlContextEvent.rs index 62339aa93b3..c0d20858297 100644 --- a/crates/web-sys/src/features/gen_WebGlContextEvent.rs +++ b/crates/web-sys/src/features/gen_WebGlContextEvent.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/statusMessage)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] - pub fn status_message(this: &WebGlContextEvent) -> String; + pub fn status_message(this: &WebGlContextEvent) -> ::alloc::string::String; #[wasm_bindgen(catch, constructor, js_class = "WebGLContextEvent")] #[doc = "The `new WebGlContextEvent(..)` constructor, creating a new instance of `WebGlContextEvent`."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebGlContextEventInit.rs b/crates/web-sys/src/features/gen_WebGlContextEventInit.rs index fff5f4f4790..8afb446b902 100644 --- a/crates/web-sys/src/features/gen_WebGlContextEventInit.rs +++ b/crates/web-sys/src/features/gen_WebGlContextEventInit.rs @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] #[wasm_bindgen(method, getter = "statusMessage")] - pub fn get_status_message(this: &WebGlContextEventInit) -> Option; + pub fn get_status_message(this: &WebGlContextEventInit) -> Option<::alloc::string::String>; #[doc = "Change the `statusMessage` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] diff --git a/crates/web-sys/src/features/gen_WebGlRenderingContext.rs b/crates/web-sys/src/features/gen_WebGlRenderingContext.rs index 9d570035a01..dbca228ee67 100644 --- a/crates/web-sys/src/features/gen_WebGlRenderingContext.rs +++ b/crates/web-sys/src/features/gen_WebGlRenderingContext.rs @@ -1639,7 +1639,7 @@ extern "C" { pub fn get_program_info_log( this: &WebGlRenderingContext, program: &WebGlProgram, - ) -> Option; + ) -> Option<::alloc::string::String>; #[cfg(feature = "WebGlProgram")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramParameter)] #[doc = "The `getProgramParameter()` method."] @@ -1673,7 +1673,7 @@ extern "C" { pub fn get_shader_info_log( this: &WebGlRenderingContext, shader: &WebGlShader, - ) -> Option; + ) -> Option<::alloc::string::String>; #[cfg(feature = "WebGlShader")] # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderParameter)] #[doc = "The `getShaderParameter()` method."] @@ -1705,7 +1705,10 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] - pub fn get_shader_source(this: &WebGlRenderingContext, shader: &WebGlShader) -> Option; + pub fn get_shader_source( + this: &WebGlRenderingContext, + shader: &WebGlShader, + ) -> Option<::alloc::string::String>; # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getSupportedExtensions)] #[doc = "The `getSupportedExtensions()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebSocket.rs b/crates/web-sys/src/features/gen_WebSocket.rs index 5f57a3c735a..7b9ef40e532 100644 --- a/crates/web-sys/src/features/gen_WebSocket.rs +++ b/crates/web-sys/src/features/gen_WebSocket.rs @@ -18,7 +18,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/url)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] - pub fn url(this: &WebSocket) -> String; + pub fn url(this: &WebSocket) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = readyState)] #[doc = "Getter for the `readyState` field of this object."] #[doc = ""] @@ -81,14 +81,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/extensions)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] - pub fn extensions(this: &WebSocket) -> String; + pub fn extensions(this: &WebSocket) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] - pub fn protocol(this: &WebSocket) -> String; + pub fn protocol(this: &WebSocket) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WebSocket" , js_name = onmessage)] #[doc = "Getter for the `onmessage` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebSocketElement.rs b/crates/web-sys/src/features/gen_WebSocketElement.rs index 7c6d3464b56..56de8133975 100644 --- a/crates/web-sys/src/features/gen_WebSocketElement.rs +++ b/crates/web-sys/src/features/gen_WebSocketElement.rs @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] #[wasm_bindgen(method, getter = "hostport")] - pub fn get_hostport(this: &WebSocketElement) -> Option; + pub fn get_hostport(this: &WebSocketElement) -> Option<::alloc::string::String>; #[doc = "Change the `hostport` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] diff --git a/crates/web-sys/src/features/gen_WebTransportCloseInfo.rs b/crates/web-sys/src/features/gen_WebTransportCloseInfo.rs index d33023f8870..fa1cd6f5c4f 100644 --- a/crates/web-sys/src/features/gen_WebTransportCloseInfo.rs +++ b/crates/web-sys/src/features/gen_WebTransportCloseInfo.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "reason")] - pub fn get_reason(this: &WebTransportCloseInfo) -> Option; + pub fn get_reason(this: &WebTransportCloseInfo) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `reason` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebTransportHash.rs b/crates/web-sys/src/features/gen_WebTransportHash.rs index 0a897b9f611..cf5d1fbfeda 100644 --- a/crates/web-sys/src/features/gen_WebTransportHash.rs +++ b/crates/web-sys/src/features/gen_WebTransportHash.rs @@ -22,7 +22,7 @@ extern "C" { #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] #[wasm_bindgen(method, getter = "algorithm")] - pub fn get_algorithm(this: &WebTransportHash) -> Option; + pub fn get_algorithm(this: &WebTransportHash) -> Option<::alloc::string::String>; #[cfg(web_sys_unstable_apis)] #[doc = "Change the `algorithm` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WebglDebugShaders.rs b/crates/web-sys/src/features/gen_WebglDebugShaders.rs index c3db2401d80..01131d0d353 100644 --- a/crates/web-sys/src/features/gen_WebglDebugShaders.rs +++ b/crates/web-sys/src/features/gen_WebglDebugShaders.rs @@ -19,5 +19,8 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WebGlShader`, `WebglDebugShaders`*"] - pub fn get_translated_shader_source(this: &WebglDebugShaders, shader: &WebGlShader) -> String; + pub fn get_translated_shader_source( + this: &WebglDebugShaders, + shader: &WebGlShader, + ) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_WidevineCdmManifest.rs b/crates/web-sys/src/features/gen_WidevineCdmManifest.rs index a9ae7990833..d60289d47d4 100644 --- a/crates/web-sys/src/features/gen_WidevineCdmManifest.rs +++ b/crates/web-sys/src/features/gen_WidevineCdmManifest.rs @@ -14,7 +14,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "description")] - pub fn get_description(this: &WidevineCdmManifest) -> String; + pub fn get_description(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `description` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] @@ -24,7 +24,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &WidevineCdmManifest) -> String; + pub fn get_name(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] @@ -34,7 +34,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "version")] - pub fn get_version(this: &WidevineCdmManifest) -> String; + pub fn get_version(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `version` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] @@ -44,7 +44,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-codecs")] - pub fn get_x_cdm_codecs(this: &WidevineCdmManifest) -> String; + pub fn get_x_cdm_codecs(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-codecs` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] @@ -54,7 +54,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-host-versions")] - pub fn get_x_cdm_host_versions(this: &WidevineCdmManifest) -> String; + pub fn get_x_cdm_host_versions(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-host-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] @@ -64,7 +64,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-interface-versions")] - pub fn get_x_cdm_interface_versions(this: &WidevineCdmManifest) -> String; + pub fn get_x_cdm_interface_versions(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-interface-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] @@ -74,7 +74,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] #[wasm_bindgen(method, getter = "x-cdm-module-versions")] - pub fn get_x_cdm_module_versions(this: &WidevineCdmManifest) -> String; + pub fn get_x_cdm_module_versions(this: &WidevineCdmManifest) -> ::alloc::string::String; #[doc = "Change the `x-cdm-module-versions` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] diff --git a/crates/web-sys/src/features/gen_Window.rs b/crates/web-sys/src/features/gen_Window.rs index 01a879dc969..cea28074b37 100644 --- a/crates/web-sys/src/features/gen_Window.rs +++ b/crates/web-sys/src/features/gen_Window.rs @@ -40,7 +40,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/name)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn name(this: &Window) -> Result; + pub fn name(this: &Window) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = name)] #[doc = "Setter for the `name` field of this object."] #[doc = ""] @@ -126,7 +126,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/status)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn status(this: &Window) -> Result; + pub fn status(this: &Window) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , setter , js_class = "Window" , js_name = status)] #[doc = "Setter for the `status` field of this object."] #[doc = ""] @@ -1988,7 +1988,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn origin(this: &Window) -> String; + pub fn origin(this: &Window) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "Window" , js_name = isSecureContext)] #[doc = "Getter for the `isSecureContext` field of this object."] #[doc = ""] @@ -2213,14 +2213,17 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn prompt(this: &Window) -> Result, JsValue>; + pub fn prompt(this: &Window) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] #[doc = "The `prompt()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn prompt_with_message(this: &Window, message: &str) -> Result, JsValue>; + pub fn prompt_with_message( + this: &Window, + message: &str, + ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = prompt)] #[doc = "The `prompt()` method."] #[doc = ""] @@ -2231,7 +2234,7 @@ extern "C" { this: &Window, message: &str, default: &str, - ) -> Result, JsValue>; + ) -> Result, JsValue>; #[cfg(web_sys_unstable_apis)] # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = queryLocalFonts)] #[doc = "The `queryLocalFonts()` method."] @@ -2482,14 +2485,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/atob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn atob(this: &Window, atob: &str) -> Result; + pub fn atob(this: &Window, atob: &str) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "Window" , js_name = btoa)] #[doc = "The `btoa()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/btoa)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Window`*"] - pub fn btoa(this: &Window, btoa: &str) -> Result; + pub fn btoa(this: &Window, btoa: &str) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (method , structural , js_class = "Window" , js_name = clearInterval)] #[doc = "The `clearInterval()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WorkerGlobalScope.rs b/crates/web-sys/src/features/gen_WorkerGlobalScope.rs index ff7518533e5..27ce448e7f7 100644 --- a/crates/web-sys/src/features/gen_WorkerGlobalScope.rs +++ b/crates/web-sys/src/features/gen_WorkerGlobalScope.rs @@ -107,7 +107,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] - pub fn origin(this: &WorkerGlobalScope) -> String; + pub fn origin(this: &WorkerGlobalScope) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerGlobalScope" , js_name = isSecureContext)] #[doc = "Getter for the `isSecureContext` field of this object."] #[doc = ""] @@ -243,14 +243,14 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/atob)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] - pub fn atob(this: &WorkerGlobalScope, atob: &str) -> Result; + pub fn atob(this: &WorkerGlobalScope, atob: &str) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "WorkerGlobalScope" , js_name = btoa)] #[doc = "The `btoa()` method."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/btoa)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] - pub fn btoa(this: &WorkerGlobalScope, btoa: &str) -> Result; + pub fn btoa(this: &WorkerGlobalScope, btoa: &str) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval)] #[doc = "The `clearInterval()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WorkerLocation.rs b/crates/web-sys/src/features/gen_WorkerLocation.rs index f8c93987d51..2bd6a64a799 100644 --- a/crates/web-sys/src/features/gen_WorkerLocation.rs +++ b/crates/web-sys/src/features/gen_WorkerLocation.rs @@ -18,61 +18,61 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/href)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn href(this: &WorkerLocation) -> String; + pub fn href(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = origin)] #[doc = "Getter for the `origin` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/origin)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn origin(this: &WorkerLocation) -> String; + pub fn origin(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = protocol)] #[doc = "Getter for the `protocol` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/protocol)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn protocol(this: &WorkerLocation) -> String; + pub fn protocol(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = host)] #[doc = "Getter for the `host` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/host)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn host(this: &WorkerLocation) -> String; + pub fn host(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hostname)] #[doc = "Getter for the `hostname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hostname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn hostname(this: &WorkerLocation) -> String; + pub fn hostname(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = port)] #[doc = "Getter for the `port` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/port)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn port(this: &WorkerLocation) -> String; + pub fn port(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = pathname)] #[doc = "Getter for the `pathname` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/pathname)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn pathname(this: &WorkerLocation) -> String; + pub fn pathname(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = search)] #[doc = "Getter for the `search` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/search)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn search(this: &WorkerLocation) -> String; + pub fn search(this: &WorkerLocation) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerLocation" , js_name = hash)] #[doc = "Getter for the `hash` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hash)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] - pub fn hash(this: &WorkerLocation) -> String; + pub fn hash(this: &WorkerLocation) -> ::alloc::string::String; } diff --git a/crates/web-sys/src/features/gen_WorkerNavigator.rs b/crates/web-sys/src/features/gen_WorkerNavigator.rs index 9fbedbbbfbb..45c5d17f898 100644 --- a/crates/web-sys/src/features/gen_WorkerNavigator.rs +++ b/crates/web-sys/src/features/gen_WorkerNavigator.rs @@ -88,49 +88,49 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appCodeName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] - pub fn app_code_name(this: &WorkerNavigator) -> Result; + pub fn app_code_name(this: &WorkerNavigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = appName)] #[doc = "Getter for the `appName` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appName)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] - pub fn app_name(this: &WorkerNavigator) -> String; + pub fn app_name(this: &WorkerNavigator) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = appVersion)] #[doc = "Getter for the `appVersion` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appVersion)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] - pub fn app_version(this: &WorkerNavigator) -> Result; + pub fn app_version(this: &WorkerNavigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = platform)] #[doc = "Getter for the `platform` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/platform)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] - pub fn platform(this: &WorkerNavigator) -> Result; + pub fn platform(this: &WorkerNavigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = userAgent)] #[doc = "Getter for the `userAgent` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/userAgent)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] - pub fn user_agent(this: &WorkerNavigator) -> Result; + pub fn user_agent(this: &WorkerNavigator) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = product)] #[doc = "Getter for the `product` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/product)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] - pub fn product(this: &WorkerNavigator) -> String; + pub fn product(this: &WorkerNavigator) -> ::alloc::string::String; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = language)] #[doc = "Getter for the `language` field of this object."] #[doc = ""] #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/language)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] - pub fn language(this: &WorkerNavigator) -> Option; + pub fn language(this: &WorkerNavigator) -> Option<::alloc::string::String>; # [wasm_bindgen (structural , method , getter , js_class = "WorkerNavigator" , js_name = languages)] #[doc = "Getter for the `languages` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_WorkerOptions.rs b/crates/web-sys/src/features/gen_WorkerOptions.rs index e14b81609cc..f21c37085d8 100644 --- a/crates/web-sys/src/features/gen_WorkerOptions.rs +++ b/crates/web-sys/src/features/gen_WorkerOptions.rs @@ -26,7 +26,7 @@ extern "C" { #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] #[wasm_bindgen(method, getter = "name")] - pub fn get_name(this: &WorkerOptions) -> Option; + pub fn get_name(this: &WorkerOptions) -> Option<::alloc::string::String>; #[doc = "Change the `name` field of this object."] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] diff --git a/crates/web-sys/src/features/gen_XPathResult.rs b/crates/web-sys/src/features/gen_XPathResult.rs index 1ed07af8731..7a99a0e67c7 100644 --- a/crates/web-sys/src/features/gen_XPathResult.rs +++ b/crates/web-sys/src/features/gen_XPathResult.rs @@ -32,7 +32,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/stringValue)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] - pub fn string_value(this: &XPathResult) -> Result; + pub fn string_value(this: &XPathResult) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (structural , catch , method , getter , js_class = "XPathResult" , js_name = booleanValue)] #[doc = "Getter for the `booleanValue` field of this object."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XmlHttpRequest.rs b/crates/web-sys/src/features/gen_XmlHttpRequest.rs index fa745611743..7f8b207dbae 100644 --- a/crates/web-sys/src/features/gen_XmlHttpRequest.rs +++ b/crates/web-sys/src/features/gen_XmlHttpRequest.rs @@ -75,7 +75,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] - pub fn response_url(this: &XmlHttpRequest) -> String; + pub fn response_url(this: &XmlHttpRequest) -> ::alloc::string::String; # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = status)] #[doc = "Getter for the `status` field of this object."] #[doc = ""] @@ -89,7 +89,7 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/statusText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] - pub fn status_text(this: &XmlHttpRequest) -> Result; + pub fn status_text(this: &XmlHttpRequest) -> Result<::alloc::string::String, JsValue>; #[cfg(feature = "XmlHttpRequestResponseType")] # [wasm_bindgen (structural , method , getter , js_class = "XMLHttpRequest" , js_name = responseType)] #[doc = "Getter for the `responseType` field of this object."] @@ -119,7 +119,8 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] - pub fn response_text(this: &XmlHttpRequest) -> Result, JsValue>; + pub fn response_text(this: &XmlHttpRequest) + -> Result, JsValue>; #[cfg(feature = "Document")] # [wasm_bindgen (structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = responseXML)] #[doc = "Getter for the `responseXML` field of this object."] @@ -155,7 +156,9 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] - pub fn get_all_response_headers(this: &XmlHttpRequest) -> Result; + pub fn get_all_response_headers( + this: &XmlHttpRequest, + ) -> Result<::alloc::string::String, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = getResponseHeader)] #[doc = "The `getResponseHeader()` method."] #[doc = ""] @@ -165,7 +168,7 @@ extern "C" { pub fn get_response_header( this: &XmlHttpRequest, header: &str, - ) -> Result, JsValue>; + ) -> Result, JsValue>; # [wasm_bindgen (catch , method , structural , js_class = "XMLHttpRequest" , js_name = open)] #[doc = "The `open()` method."] #[doc = ""] diff --git a/crates/web-sys/src/features/gen_XmlSerializer.rs b/crates/web-sys/src/features/gen_XmlSerializer.rs index 0d00e952457..af075d62688 100644 --- a/crates/web-sys/src/features/gen_XmlSerializer.rs +++ b/crates/web-sys/src/features/gen_XmlSerializer.rs @@ -26,5 +26,8 @@ extern "C" { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/serializeToString)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `Node`, `XmlSerializer`*"] - pub fn serialize_to_string(this: &XmlSerializer, root: &Node) -> Result; + pub fn serialize_to_string( + this: &XmlSerializer, + root: &Node, + ) -> Result<::alloc::string::String, JsValue>; } diff --git a/crates/web-sys/src/features/gen_css.rs b/crates/web-sys/src/features/gen_css.rs index 6ec6ff813dc..94613d3f590 100644 --- a/crates/web-sys/src/features/gen_css.rs +++ b/crates/web-sys/src/features/gen_css.rs @@ -11,7 +11,7 @@ pub mod css { #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape)"] #[doc = ""] #[doc = "*This API requires the following crate features to be activated: `css`*"] - pub fn escape(ident: &str) -> String; + pub fn escape(ident: &str) -> ::alloc::string::String; # [wasm_bindgen (catch , js_namespace = CSS , js_name = supports)] #[doc = "The `CSS.supports()` function."] #[doc = ""] diff --git a/crates/web-sys/src/lib.rs b/crates/web-sys/src/lib.rs index 01e9aa7999b..bb2e73de44e 100644 --- a/crates/web-sys/src/lib.rs +++ b/crates/web-sys/src/lib.rs @@ -12,9 +12,13 @@ //! require. #![doc(html_root_url = "https://docs.rs/web-sys/0.3")] +#![cfg_attr(not(feature = "std"), no_std)] #![allow(deprecated)] +extern crate alloc; + mod features; +#[allow(unused_imports)] pub use features::*; pub use js_sys; diff --git a/crates/web-sys/tests/wasm/history.rs b/crates/web-sys/tests/wasm/history.rs index e2800520eb9..ba073d85e07 100644 --- a/crates/web-sys/tests/wasm/history.rs +++ b/crates/web-sys/tests/wasm/history.rs @@ -4,7 +4,7 @@ use web_sys::{History, ScrollRestoration}; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(thread_local, js_name = history, js_namespace = window)] + #[wasm_bindgen(thread_local_v2, js_name = history, js_namespace = window)] static HISTORY: History; } diff --git a/crates/web-sys/tests/wasm/performance.rs b/crates/web-sys/tests/wasm/performance.rs index 09fb59a66a1..1be0c7f11f0 100644 --- a/crates/web-sys/tests/wasm/performance.rs +++ b/crates/web-sys/tests/wasm/performance.rs @@ -4,7 +4,7 @@ use web_sys::Performance; #[wasm_bindgen] extern "C" { - #[wasm_bindgen(thread_local, js_name = performance)] + #[wasm_bindgen(thread_local_v2, js_name = performance)] static PERFORMANCE: Performance; } diff --git a/crates/webidl-tests/main.rs b/crates/webidl-tests/main.rs index de1e5046670..cef83d4c65e 100644 --- a/crates/webidl-tests/main.rs +++ b/crates/webidl-tests/main.rs @@ -1,3 +1,5 @@ +extern crate alloc; + use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; diff --git a/crates/webidl/src/idl_type.rs b/crates/webidl/src/idl_type.rs index 43a70604d07..40fa060f1ec 100644 --- a/crates/webidl/src/idl_type.rs +++ b/crates/webidl/src/idl_type.rs @@ -626,6 +626,14 @@ impl<'a> IdlType<'a> { let path = vec![rust_ident("wasm_bindgen"), rust_ident("JsValue")]; externref(leading_colon_path_ty(path)) }; + let string = { + let path = vec![ + rust_ident("alloc"), + rust_ident("string"), + rust_ident("String"), + ]; + externref(leading_colon_path_ty(path)) + }; match self { IdlType::Boolean => Ok(Some(ident_ty(raw_ident("bool")))), IdlType::Byte => Ok(Some(ident_ty(raw_ident("i8")))), @@ -655,7 +663,7 @@ impl<'a> IdlType<'a> { IdlType::UnrestrictedDouble => Ok(Some(ident_ty(raw_ident("f64")))), IdlType::DomString | IdlType::ByteString | IdlType::UsvString => match pos { TypePosition::Argument => Ok(Some(shared_ref(ident_ty(raw_ident("str")), false))), - TypePosition::Return => Ok(Some(ident_ty(raw_ident("String")))), + TypePosition::Return => Ok(string), }, IdlType::Object => Ok(js_sys("Object")), IdlType::Symbol => Err(TypeError::CannotConvert), diff --git a/crates/webidl/src/update_cargo_toml.rs b/crates/webidl/src/update_cargo_toml.rs index cc8f6fdc641..7e3abf395e3 100644 --- a/crates/webidl/src/update_cargo_toml.rs +++ b/crates/webidl/src/update_cargo_toml.rs @@ -9,10 +9,12 @@ pub fn update_cargo_toml_features( let comment = "# This list is auto-generated by the wasm-bindgen-webidl program"; let features_head = "[features]"; let features_table = format!( - r"{comment} + r#"{comment} {features_head} +default = ["std"] +std = ["wasm-bindgen/std", "js-sys/std"] {generated_features} -" +"# ); match cargo_toml_text.find(features_head) { diff --git a/examples/wasm-audio-worklet/src/dependent_module.rs b/examples/wasm-audio-worklet/src/dependent_module.rs index 5e074d72b0b..7f5f28eec61 100644 --- a/examples/wasm-audio-worklet/src/dependent_module.rs +++ b/examples/wasm-audio-worklet/src/dependent_module.rs @@ -12,7 +12,7 @@ extern "C" { #[wasm_bindgen(method, getter)] fn url(this: &ImportMeta) -> JsString; - #[wasm_bindgen(thread_local, js_namespace = import, js_name = meta)] + #[wasm_bindgen(thread_local_v2, js_namespace = import, js_name = meta)] static IMPORT_META: ImportMeta; } diff --git a/guide/src/reference/attributes/on-js-imports/indexing-getter-setter-deleter.md b/guide/src/reference/attributes/on-js-imports/indexing-getter-setter-deleter.md index 0d0443cb001..9ec96fe7007 100644 --- a/guide/src/reference/attributes/on-js-imports/indexing-getter-setter-deleter.md +++ b/guide/src/reference/attributes/on-js-imports/indexing-getter-setter-deleter.md @@ -60,7 +60,7 @@ on methods: #[wasm_bindgen] extern "C" { type Foo; - #[wasm_bindgen(thread_local)] + #[wasm_bindgen(thread_local_v2)] static FOO: Foo; #[wasm_bindgen(method, structural, indexing_getter)] diff --git a/guide/src/reference/static-js-objects.md b/guide/src/reference/static-js-objects.md index 2402098e606..b6aee687dc8 100644 --- a/guide/src/reference/static-js-objects.md +++ b/guide/src/reference/static-js-objects.md @@ -2,9 +2,10 @@ JavaScript modules will often export arbitrary static objects for use with their provided interfaces. These objects can be accessed from Rust by declaring -a named `static` in the `extern` block. `wasm-bindgen` will bind a `JsStatic` -for these objects, which can be cloned into a `JsValue`. For example, given the -following JavaScript: +a named `static` in the `extern` block with an +`#[wasm_bindgen(thread_local_v2)]` attribute. `wasm-bindgen` will bind a +`JsThreadLocal` for these objects, which can be cloned into a `JsValue`. For +example, given the following JavaScript: ```js let COLORS = { @@ -19,7 +20,7 @@ let COLORS = { ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(thread_local)] + #[wasm_bindgen(thread_local_v2)] static COLORS; } @@ -50,11 +51,11 @@ The binding for this module: #[wasm_bindgen(module = "/js/some-rollup.js")] extern "C" { // Likewise with the namespace--this refers to the object directly. - #[wasm_bindgen(thread_local, js_name = namespace)] + #[wasm_bindgen(thread_local_v2, js_name = namespace)] static NAMESPACE: JsValue; // Refer to SomeType's class - #[wasm_bindgen(thread_local, js_name = SomeType)] + #[wasm_bindgen(thread_local_v2, js_name = SomeType)] static SOME_TYPE: JsValue; // Other bindings for SomeType @@ -71,7 +72,7 @@ Strings can be imported to avoid going through `TextDecoder/Encoder` when requir ```rust #[wasm_bindgen] extern "C" { - #[wasm_bindgen(thread_local, static_string)] + #[wasm_bindgen(thread_local_v2, static_string)] static STRING: JsString = "a string literal"; } ``` diff --git a/src/convert/mod.rs b/src/convert/mod.rs index 548b42fda05..02fa3d31702 100644 --- a/src/convert/mod.rs +++ b/src/convert/mod.rs @@ -3,6 +3,8 @@ //! This is an internal module, no stability guarantees are provided. Use at //! your own risk. +#![allow(clippy::missing_safety_doc)] + mod closures; mod impls; mod slices; diff --git a/src/externref.rs b/src/externref.rs index 1691bc45892..a708dc5adc2 100644 --- a/src/externref.rs +++ b/src/externref.rs @@ -106,7 +106,7 @@ fn internal_error(msg: &str) -> ! { std::process::abort(); } else if #[cfg(all( target_arch = "wasm32", - target_os = "unknown" + any(target_os = "unknown", target_os = "none") ))] { core::arch::wasm32::unreachable(); } else { @@ -117,7 +117,12 @@ fn internal_error(msg: &str) -> ! { // Management of `externref` is always thread local since an `externref` value // can't cross threads in wasm. Indices as a result are always thread-local. -std::thread_local!(pub static HEAP_SLAB: Cell = Cell::new(Slab::new())); +#[cfg(feature = "std")] +std::thread_local!(static HEAP_SLAB: Cell = Cell::new(Slab::new())); +#[cfg(not(feature = "std"))] +#[cfg_attr(target_feature = "atomics", thread_local)] +static HEAP_SLAB: crate::__rt::LazyCell> = + crate::__rt::LazyCell::new(|| Cell::new(Slab::new())); #[no_mangle] pub extern "C" fn __externref_table_alloc() -> usize { diff --git a/src/lib.rs b/src/lib.rs index 6c6961cf942..a375a5d2acc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,10 @@ #![no_std] #![cfg_attr(wasm_bindgen_unstable_test_coverage, feature(coverage_attribute))] +#![cfg_attr( + all(not(feature = "std"), target_feature = "atomics"), + feature(thread_local) +)] #![allow(coherence_leak_check)] #![doc(html_root_url = "https://docs.rs/wasm-bindgen/0.2")] @@ -33,14 +37,14 @@ macro_rules! if_std { macro_rules! externs { ($(#[$attr:meta])* extern "C" { $(fn $name:ident($($args:tt)*) -> $ret:ty;)* }) => ( - #[cfg(all(target_arch = "wasm32", target_os = "unknown"))] + #[cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))] $(#[$attr])* extern "C" { $(fn $name($($args)*) -> $ret;)* } $( - #[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))] + #[cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))] #[allow(unused_variables)] unsafe extern fn $name($($args)*) -> $ret { panic!("function not implemented on non-wasm32 targets") @@ -71,6 +75,7 @@ pub use wasm_bindgen_macro::link_to; pub mod closure; pub mod convert; pub mod describe; +mod externref; mod link; mod cast; @@ -79,7 +84,6 @@ pub use crate::cast::{JsCast, JsObject}; if_std! { extern crate std; use std::prelude::v1::*; - mod externref; mod cache; pub use cache::intern::{intern, unintern}; } @@ -1186,7 +1190,7 @@ impl Default for JsValue { /// This type implements `Deref` to the inner type so it's typically used as if /// it were `&T`. #[cfg(feature = "std")] -#[deprecated = "use with `#[wasm_bindgen(thread_local)]` instead"] +#[deprecated = "use with `#[wasm_bindgen(thread_local_v2)]` instead"] pub struct JsStatic { #[doc(hidden)] pub __inner: &'static std::thread::LocalKey, @@ -1202,6 +1206,50 @@ impl Deref for JsStatic { } } +/// Wrapper type for imported statics. +/// +/// This type is used whenever a `static` is imported from a JS module, for +/// example this import: +/// +/// ```ignore +/// #[wasm_bindgen] +/// extern "C" { +/// #[wasm_bindgen(thread_local_v2)] +/// static console: JsValue; +/// } +/// ``` +/// +/// will generate in Rust a value that looks like: +/// +/// ```ignore +/// static console: JsThreadLocal = ...; +/// ``` +pub struct JsThreadLocal { + #[doc(hidden)] + #[cfg(feature = "std")] + pub __inner: &'static std::thread::LocalKey, + #[doc(hidden)] + #[cfg(all(not(feature = "std"), not(target_feature = "atomics")))] + pub __inner: &'static __rt::LazyCell, + #[doc(hidden)] + #[cfg(all(not(feature = "std"), target_feature = "atomics"))] + pub __inner: fn() -> *const T, +} + +impl JsThreadLocal { + pub fn with(&'static self, f: F) -> R + where + F: FnOnce(&T) -> R, + { + #[cfg(feature = "std")] + return self.__inner.with(f); + #[cfg(all(not(feature = "std"), not(target_feature = "atomics")))] + return f(self.__inner); + #[cfg(all(not(feature = "std"), target_feature = "atomics"))] + f(unsafe { &*(self.__inner)() }) + } +} + #[cold] #[inline(never)] #[deprecated(note = "renamed to `throw_str`")] @@ -1336,14 +1384,17 @@ pub trait UnwrapThrowExt: Sized { #[cfg_attr( any( debug_assertions, - not(all(target_arch = "wasm32", target_os = "unknown")) + not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))) ), track_caller )] fn unwrap_throw(self) -> T { if cfg!(all( debug_assertions, - all(target_arch = "wasm32", target_os = "unknown") + all( + target_arch = "wasm32", + any(target_os = "unknown", target_os = "none") + ) )) { let loc = core::panic::Location::caller(); let msg = alloc::format!( @@ -1365,7 +1416,7 @@ pub trait UnwrapThrowExt: Sized { #[cfg_attr( any( debug_assertions, - not(all(target_arch = "wasm32", target_os = "unknown")) + not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))) ), track_caller )] @@ -1376,7 +1427,10 @@ impl UnwrapThrowExt for Option { fn unwrap_throw(self) -> T { const MSG: &str = "called `Option::unwrap_throw()` on a `None` value"; - if cfg!(all(target_arch = "wasm32", target_os = "unknown")) { + if cfg!(all( + target_arch = "wasm32", + any(target_os = "unknown", target_os = "none") + )) { if let Some(val) = self { val } else if cfg!(debug_assertions) { @@ -1394,7 +1448,10 @@ impl UnwrapThrowExt for Option { } fn expect_throw(self, message: &str) -> T { - if cfg!(all(target_arch = "wasm32", target_os = "unknown")) { + if cfg!(all( + target_arch = "wasm32", + any(target_os = "unknown", target_os = "none") + )) { if let Some(val) = self { val } else if cfg!(debug_assertions) { @@ -1424,7 +1481,10 @@ where fn unwrap_throw(self) -> T { const MSG: &str = "called `Result::unwrap_throw()` on an `Err` value"; - if cfg!(all(target_arch = "wasm32", target_os = "unknown")) { + if cfg!(all( + target_arch = "wasm32", + any(target_os = "unknown", target_os = "none") + )) { match self { Ok(val) => val, Err(err) => { @@ -1451,7 +1511,10 @@ where } fn expect_throw(self, message: &str) -> T { - if cfg!(all(target_arch = "wasm32", target_os = "unknown")) { + if cfg!(all( + target_arch = "wasm32", + any(target_os = "unknown", target_os = "none") + )) { match self { Ok(val) => val, Err(err) => { @@ -1518,7 +1581,54 @@ pub mod __rt { use alloc::alloc::{alloc, dealloc, realloc, Layout}; use alloc::boxed::Box; use alloc::rc::Rc; - pub use once_cell::sync::Lazy; + + pub mod once_cell { + #[cfg(any(target_feature = "atomics", feature = "std"))] + pub use once_cell::*; + + #[cfg(all(not(target_feature = "atomics"), not(feature = "std")))] + pub mod sync { + pub use super::super::LazyCell as Lazy; + } + } + + /// Wrapper around [`::once_cell::unsync::Lazy`] adding some compatibility methods with + /// [`std::thread::LocalKey`] and adding `Send + Sync` when `atomics` is not enabled. + #[cfg(not(feature = "std"))] + pub struct LazyCell(::once_cell::unsync::Lazy); + + #[cfg(all(not(target_feature = "atomics"), not(feature = "std")))] + unsafe impl Sync for LazyCell {} + + #[cfg(all(not(target_feature = "atomics"), not(feature = "std")))] + unsafe impl Send for LazyCell {} + + #[cfg(not(feature = "std"))] + impl LazyCell { + pub const fn new(init: fn() -> T) -> LazyCell { + Self(::once_cell::unsync::Lazy::new(init)) + } + + pub(crate) fn try_with( + &self, + f: impl FnOnce(&T) -> R, + ) -> Result { + Ok(f(&self.0)) + } + + pub fn force(this: &Self) -> &T { + &this.0 + } + } + + #[cfg(not(feature = "std"))] + impl Deref for LazyCell { + type Target = T; + + fn deref(&self) -> &T { + ::once_cell::unsync::Lazy::force(&self.0) + } + } #[macro_export] #[doc(hidden)] @@ -1826,7 +1936,7 @@ pub mod __rt { std::process::abort(); } else if #[cfg(all( target_arch = "wasm32", - target_os = "unknown" + any(target_os = "unknown", target_os = "none") ))] { core::arch::wasm32::unreachable(); } else { @@ -1884,30 +1994,64 @@ pub mod __rt { crate::link::link_intrinsics(); } - if_std! { - std::thread_local! { - static GLOBAL_EXNDATA: Cell<[u32; 2]> = Cell::new([0; 2]); + #[cfg(feature = "std")] + std::thread_local! { + static GLOBAL_EXNDATA: Cell<[u32; 2]> = Cell::new([0; 2]); + } + #[cfg(all(not(feature = "std"), not(target_feature = "atomics")))] + static mut GLOBAL_EXNDATA: [u32; 2] = [0; 2]; + #[cfg(all(not(feature = "std"), target_feature = "atomics"))] + #[thread_local] + static GLOBAL_EXNDATA: Cell<[u32; 2]> = Cell::new([0; 2]); + + struct GlobalExndata; + + impl GlobalExndata { + #[cfg(feature = "std")] + fn get() -> [u32; 2] { + GLOBAL_EXNDATA.with(Cell::get) } - #[no_mangle] - pub unsafe extern "C" fn __wbindgen_exn_store(idx: u32) { - GLOBAL_EXNDATA.with(|data| { - debug_assert_eq!(data.get()[0], 0); - data.set([1, idx]); - }); + #[cfg(all(not(feature = "std"), not(target_feature = "atomics")))] + fn get() -> [u32; 2] { + unsafe { GLOBAL_EXNDATA } } - pub fn take_last_exception() -> Result<(), super::JsValue> { - GLOBAL_EXNDATA.with(|data| { - let ret = if data.get()[0] == 1 { - Err(super::JsValue::_new(data.get()[1])) - } else { - Ok(()) - }; - data.set([0, 0]); - ret - }) + #[cfg(all(not(feature = "std"), target_feature = "atomics"))] + fn get() -> [u32; 2] { + GLOBAL_EXNDATA.get() + } + + #[cfg(feature = "std")] + fn set(data: [u32; 2]) { + GLOBAL_EXNDATA.with(|d| d.set(data)) + } + + #[cfg(all(not(feature = "std"), not(target_feature = "atomics")))] + fn set(data: [u32; 2]) { + unsafe { GLOBAL_EXNDATA = data }; } + + #[cfg(all(not(feature = "std"), target_feature = "atomics"))] + fn set(data: [u32; 2]) { + GLOBAL_EXNDATA.set(data); + } + } + + #[no_mangle] + pub unsafe extern "C" fn __wbindgen_exn_store(idx: u32) { + debug_assert_eq!(GlobalExndata::get()[0], 0); + GlobalExndata::set([1, idx]); + } + + pub fn take_last_exception() -> Result<(), super::JsValue> { + let ret = if GlobalExndata::get()[0] == 1 { + Err(super::JsValue::_new(GlobalExndata::get()[1])) + } else { + Ok(()) + }; + GlobalExndata::set([0, 0]); + ret } /// An internal helper trait for usage in `#[wasm_bindgen]` on `async` diff --git a/taplo.toml b/taplo.toml index 56bc58a4c7d..e596d98b3c1 100644 --- a/taplo.toml +++ b/taplo.toml @@ -4,6 +4,6 @@ column_width = 100 reorder_keys = true [[rule]] -formatting = { array_auto_expand = false } +formatting = { array_auto_expand = false, reorder_keys = false } include = ["crates/web-sys/Cargo.toml"] keys = ["features"] diff --git a/tests/headless/strings.rs b/tests/headless/strings.rs index baa551b8950..5bf1afcefb4 100644 --- a/tests/headless/strings.rs +++ b/tests/headless/strings.rs @@ -23,6 +23,6 @@ fn string_roundtrip() { // See . #[rustfmt::skip] extern "C" { - #[wasm_bindgen(thread_local, static_string)] + #[wasm_bindgen(thread_local_v2, static_string)] static STRING: JsString = "foo"; } diff --git a/tests/non_wasm.rs b/tests/non_wasm.rs index ca8acad3b58..d67f26d36b8 100644 --- a/tests/non_wasm.rs +++ b/tests/non_wasm.rs @@ -31,7 +31,7 @@ pub fn foo(x: bool) { #[wasm_bindgen] extern "C" { fn some_import(); - #[wasm_bindgen(thread_local)] + #[wasm_bindgen(thread_local_v2)] static A: JsValue; } diff --git a/tests/wasm/duplicates.rs b/tests/wasm/duplicates.rs index 348f67b8cd0..e0fa3339730 100644 --- a/tests/wasm/duplicates.rs +++ b/tests/wasm/duplicates.rs @@ -6,7 +6,7 @@ pub mod same_function_different_locations_a { #[wasm_bindgen(module = "tests/wasm/duplicates_a.js")] extern "C" { pub fn foo(); - #[wasm_bindgen(thread_local, js_name = bar)] + #[wasm_bindgen(thread_local_v2, js_name = bar)] pub static BAR: JsValue; } } @@ -17,7 +17,7 @@ pub mod same_function_different_locations_b { #[wasm_bindgen(module = "tests/wasm/duplicates_a.js")] extern "C" { pub fn foo(); - #[wasm_bindgen(thread_local, js_name = bar)] + #[wasm_bindgen(thread_local_v2, js_name = bar)] pub static BAR: JsValue; } } @@ -36,7 +36,7 @@ pub mod same_function_different_modules_a { #[wasm_bindgen(module = "tests/wasm/duplicates_b.js")] extern "C" { pub fn foo() -> bool; - #[wasm_bindgen(thread_local, js_name = bar)] + #[wasm_bindgen(thread_local_v2, js_name = bar)] pub static BAR: JsValue; } } @@ -47,7 +47,7 @@ pub mod same_function_different_modules_b { #[wasm_bindgen(module = "tests/wasm/duplicates_c.js")] extern "C" { pub fn foo() -> bool; - #[wasm_bindgen(thread_local, js_name = bar)] + #[wasm_bindgen(thread_local_v2, js_name = bar)] pub static BAR: JsValue; } } diff --git a/tests/wasm/imports.rs b/tests/wasm/imports.rs index aa5a8b4f038..a6eab0c5e32 100644 --- a/tests/wasm/imports.rs +++ b/tests/wasm/imports.rs @@ -23,7 +23,7 @@ extern "C" { fn assert_valid_error(val: JsValue); - #[wasm_bindgen(thread_local)] + #[wasm_bindgen(thread_local_v2)] static IMPORT: JsValue; #[wasm_bindgen(js_name = return_three)] @@ -36,7 +36,7 @@ extern "C" { #[allow(non_camel_case_types)] type bar; - #[wasm_bindgen(thread_local, js_namespace = bar, js_name = foo)] + #[wasm_bindgen(thread_local_v2, js_namespace = bar, js_name = foo)] static FOO: JsValue; fn take_custom_type(f: CustomType) -> CustomType; @@ -47,7 +47,7 @@ extern "C" { #[wasm_bindgen(js_name = "baz$")] fn renamed_with_dollar_sign(); - #[wasm_bindgen(thread_local, js_name = "$foo")] + #[wasm_bindgen(thread_local_v2, js_name = "$foo")] static RENAMED: JsValue; fn unused_import(); @@ -58,7 +58,7 @@ extern "C" { #[wasm_bindgen(static_method_of = StaticMethodCheck)] fn static_method_of_right_this(); - #[wasm_bindgen(thread_local)] + #[wasm_bindgen(thread_local_v2)] static STATIC_STRING: String; #[derive(Clone)] diff --git a/tests/wasm/node.rs b/tests/wasm/node.rs index 59f43eb71d9..9ab8ffee32b 100644 --- a/tests/wasm/node.rs +++ b/tests/wasm/node.rs @@ -4,7 +4,7 @@ use wasm_bindgen_test::*; #[wasm_bindgen(module = "tests/wasm/node.js")] extern "C" { fn test_works(); - #[wasm_bindgen(thread_local)] + #[wasm_bindgen(thread_local_v2)] static FOO: JsValue; fn hit(); }